更新iOSsdk到v374

This commit is contained in:
JoshLi 2021-07-28 11:20:56 +08:00
parent aeee619eab
commit c629dcc033
3 changed files with 85 additions and 11 deletions

View File

@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="jpush-phonegap-plugin"
version="3.8.1">
version="3.8.2">
<name>JPush</name>
<description>JPush for cordova plugin</description>
@ -49,7 +49,7 @@
<source-file src="src/ios/Plugins/AppDelegate+JPush.m" />
<header-file src="src/ios/lib/JPUSHService.h" />
<source-file src="src/ios/lib/jpush-ios-3.5.2.a" framework="true" />
<source-file src="src/ios/lib/jpush-ios-3.7.4.a" framework="true" />
<resource-file src="src/ios/JPushConfig.plist" />
<framework src="CFNetwork.framework" weak="true" />

View File

@ -9,7 +9,7 @@
* Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved.
*/
#define JPUSH_VERSION_NUMBER 3.5.2
#define JPUSH_VERSION_NUMBER 3.7.4
#import <Foundation/Foundation.h>
@ -20,6 +20,7 @@
@class UNNotificationSettings;
@class UNNotificationRequest;
@class UNNotification;
@class UIView;
@protocol JPUSHRegisterDelegate;
@protocol JPUSHGeofenceDelegate;
@protocol JPushInMessageDelegate;
@ -428,7 +429,14 @@ typedef NS_OPTIONS(NSUInteger, JPInMessageType) {
10 iOS系统默认地理围栏最大个数为20
@param count count
*/
+ (void)setGeofenecMaxCount:(NSInteger)count;
+ (void)setGeofeneceMaxCount:(NSInteger)count;
/**
''
15
*/
+ (void)setGeofenecePeriodForInside:(NSInteger)seconds;
/**
@ -662,6 +670,14 @@ typedef NS_OPTIONS(NSUInteger, JPInMessageType) {
*/
+ (void)setInMessageDelegate:(id<JPushInMessageDelegate>)inMessageDelegate;
/*!
* @abstract inMessageView的父控件
*
* @discussion windowSDK默认取当前APP顶层的Window
*
*/
+ (void)setInMessageSuperView:(UIView *)view;
/*!
* @abstract
@ -669,7 +685,7 @@ typedef NS_OPTIONS(NSUInteger, JPInMessageType) {
* @discussion
*
*/
+ (void)pullInMessageCompletion:(JPUSHInMssageCompletion)completion;
+ (void)pullInMessageCompletion:(JPUSHInMssageCompletion)completion __attribute__((deprecated("JPush 3.7.0 版本已过期")));
/*!
@ -679,20 +695,63 @@ typedef NS_OPTIONS(NSUInteger, JPInMessageType) {
*
* @discussion
*/
+ (void)pullInMessageWithTypes:(NSUInteger)types completion:(JPUSHInMssageCompletion)completion;
+ (void)pullInMessageWithTypes:(NSUInteger)types completion:(JPUSHInMssageCompletion)completion __attribute__((deprecated("JPush 3.7.0 版本已过期")));
/*!
* @abstract sdk报告当前展示的控制器的名称
* @abstract
*
* @param adPosition 广
*
* @discussion
*/
+ (void)pullInMessageWithAdPosition:(NSString *)adPosition completion:(JPUSHInMssageCompletion)completion;
/*!
* @abstract
*
* @param params : @"adPosition" -> 广 NSString, @"event" -> NSString
*
* @discussion
*/
+ (void)pullInMessageWithParams:(NSDictionary *)params completion:(JPUSHInMssageCompletion)completion;
/*!
* @abstract
*
* @param event
*
*/
+ (void)triggerInMessageByEvent:(NSString *)event;
/*!
* @abstract sdk当前切换到的页面名称
*
* @param className
*
* @discussion inapp
* @discussion
inapp的功能inapp页面延迟展示功能都依赖于该接口调用
viewDidAppear中调用此方法inapp部分功能不完善viewController的基类中调用使method swizzling方法交换viewController的viewDidAppear方法
*
*/
+ (void)currentViewControllerName:(NSString *)className;
/*!
* @abstract
*
* @param pageName
*
* @discussion viewDidAppear中调用此方法viewController的基类中调用使method swizzling方法交换viewController的viewDidAppear方法
*
*/
+ (void)triggerInMessageByPageChange:(NSString *)pageName __attribute__((deprecated("JPush 3.7.4 版本已过期")));
///----------------------------------------------------
///********************下列方法已过期********************
///**************请使用新版tag/alias操作接口**************
@ -765,6 +824,20 @@ callbackSelector:(SEL)cbSelector
@end
@protocol JPUSHGeofenceDelegate <NSObject>
/**
@param geofence
@param error
*/
- (void)jpushGeofenceRegion:(NSDictionary *)geofence
error:(NSError *)error;
/**
@param geofenceList
*/
- (void)jpushCallbackGeofenceReceived:(NSArray<NSDictionary*> *)geofenceList;
/**
@ -773,7 +846,7 @@ callbackSelector:(SEL)cbSelector
@param userInfo
@param error
*/
- (void)jpushGeofenceIdentifer:(NSString *)geofenceId didEnterRegion:(NSDictionary *)userInfo error:(NSError *)error;
- (void)jpushGeofenceIdentifer:(NSString *)geofenceId didEnterRegion:(NSDictionary *)userInfo error:(NSError *)error __attribute__((deprecated("JPush 3.6.0 版本已过期")));
/**
@ -782,7 +855,8 @@ callbackSelector:(SEL)cbSelector
@param userInfo
@param error
*/
- (void)jpushGeofenceIdentifer:(NSString *)geofenceId didExitRegion:(NSDictionary *)userInfo error:(NSError *)error;
- (void)jpushGeofenceIdentifer:(NSString *)geofenceId didExitRegion:(NSDictionary *)userInfo error:(NSError *)error __attribute__((deprecated("JPush 3.6.0 版本已过期")));
@end
@ -797,7 +871,7 @@ callbackSelector:(SEL)cbSelector
/**
*
*/
- (void)jPushInMessageAlreadyPop __attribute__((deprecated("JPush 3.4.0 版本已过期")));;
- (void)jPushInMessageAlreadyPop __attribute__((deprecated("JPush 3.4.0 版本已过期")));
/**
*