mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-04-28 21:30:11 +08:00
更新iOS JPush4.8.1
This commit is contained in:
parent
6932b84f4e
commit
56d9417dbc
@ -49,7 +49,7 @@
|
|||||||
<source-file src="src/ios/Plugins/AppDelegate+JPush.m" />
|
<source-file src="src/ios/Plugins/AppDelegate+JPush.m" />
|
||||||
|
|
||||||
<header-file src="src/ios/lib/JPUSHService.h" />
|
<header-file src="src/ios/lib/JPUSHService.h" />
|
||||||
<source-file src="src/ios/lib/jpush-ios-4.6.6.a" framework="true" />
|
<source-file src="src/ios/lib/jpush-ios-4.8.1.a" framework="true" />
|
||||||
<resource-file src="src/ios/JPushConfig.plist" />
|
<resource-file src="src/ios/JPushConfig.plist" />
|
||||||
|
|
||||||
<framework src="CFNetwork.framework" weak="true" />
|
<framework src="CFNetwork.framework" weak="true" />
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved.
|
* Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define JPUSH_VERSION_NUMBER 4.6.6
|
#define JPUSH_VERSION_NUMBER 4.8.1
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
@ -28,6 +28,7 @@
|
|||||||
typedef void (^JPUSHTagsOperationCompletion)(NSInteger iResCode, NSSet *iTags, NSInteger seq);
|
typedef void (^JPUSHTagsOperationCompletion)(NSInteger iResCode, NSSet *iTags, NSInteger seq);
|
||||||
typedef void (^JPUSHTagValidOperationCompletion)(NSInteger iResCode, NSSet *iTags, NSInteger seq, BOOL isBind);
|
typedef void (^JPUSHTagValidOperationCompletion)(NSInteger iResCode, NSSet *iTags, NSInteger seq, BOOL isBind);
|
||||||
typedef void (^JPUSHAliasOperationCompletion)(NSInteger iResCode, NSString *iAlias, NSInteger seq);
|
typedef void (^JPUSHAliasOperationCompletion)(NSInteger iResCode, NSString *iAlias, NSInteger seq);
|
||||||
|
typedef void (^JPUSHPropertiesOperationCompletion)(NSInteger iResCode, NSDictionary *properties, NSInteger seq);
|
||||||
|
|
||||||
extern NSString *const kJPFNetworkIsConnectingNotification; // 正在连接中
|
extern NSString *const kJPFNetworkIsConnectingNotification; // 正在连接中
|
||||||
extern NSString *const kJPFNetworkDidSetupNotification; // 建立连接
|
extern NSString *const kJPFNetworkDidSetupNotification; // 建立连接
|
||||||
@ -363,6 +364,49 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
|
|||||||
*/
|
*/
|
||||||
+ (NSSet *)filterValidTags:(NSSet *)tags;
|
+ (NSSet *)filterValidTags:(NSSet *)tags;
|
||||||
|
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* Property操作接口
|
||||||
|
* 支持增加/删除/清空操作
|
||||||
|
* 详情请参考文档:https://docs.jiguang.cn/jpush/client/iOS/ios_api/)
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
新增/更新用户属性
|
||||||
|
|
||||||
|
如果某个用户属性之前已经存在了,则会更新;不存在,则会新增
|
||||||
|
|
||||||
|
@param properties 需要新增或者更新的的用户属性内容,类型为NSDictionary;
|
||||||
|
Key 为用户属性名称,类型必须是 NSString 类型;Value为用户属性值,只支持 NSString、NSNumber、NSDate类型,如果属性为BOOL类型,传值时请转成NSNumber类型
|
||||||
|
@param completion 响应回调
|
||||||
|
@param seq 请求序列号
|
||||||
|
*/
|
||||||
|
+ (void)setProperties:(NSDictionary *)properties
|
||||||
|
completion:(JPUSHPropertiesOperationCompletion)completion
|
||||||
|
seq:(NSInteger)seq;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
删除指定属性
|
||||||
|
|
||||||
|
@param keys 需要删除的属性名称集合
|
||||||
|
@param completion 响应回调
|
||||||
|
@param seq 请求序列号
|
||||||
|
*/
|
||||||
|
+ (void)deleteProperties:(NSSet<NSString *> *)keys
|
||||||
|
completion:(JPUSHPropertiesOperationCompletion)completion
|
||||||
|
seq:(NSInteger)seq;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
清空所有属性
|
||||||
|
@param completion 响应回调
|
||||||
|
@param seq 请求序列号
|
||||||
|
*/
|
||||||
|
+ (void)cleanProperties:(JPUSHPropertiesOperationCompletion)completion
|
||||||
|
seq:(NSInteger)seq;
|
||||||
|
|
||||||
|
|
||||||
///----------------------------------------------------
|
///----------------------------------------------------
|
||||||
/// @name Stats 统计功能
|
/// @name Stats 统计功能
|
||||||
///----------------------------------------------------
|
///----------------------------------------------------
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user