iOS - update SDK 3.0.0

This commit is contained in:
pikacode 2016-12-06 14:25:15 +08:00
parent b67b022db3
commit dfaf84b695
5 changed files with 33 additions and 22 deletions

View File

@ -1,6 +1,8 @@
## iOS 手动安装 ## iOS 手动安装
不建议使用手动安装,请参照 README.md 进行自动安装。 > **不建议使用手动安装,请参照 README.md 进行自动安装。**
1. 下载 JPush PhoneGap Plugin 插件,并解压 1. 下载 JPush PhoneGap Plugin 插件,并解压
2. 将 [/src/ios](/src/ios) 文件夹及内容在 xcode 中拖到你的工程里,并配置 [/src/ios/PushConfig.plist](/src/ios/PushConfig.plist) 中相应参数: 2. 将 [/src/ios](/src/ios) 文件夹及内容在 xcode 中拖到你的工程里,并配置 [/src/ios/PushConfig.plist](/src/ios/PushConfig.plist) 中相应参数:

View File

@ -30,14 +30,17 @@
</feature> </feature>
</config-file> </config-file>
<header-file src="src/ios/Plugins/JPushDefine.h" />
<header-file src="src/ios/Plugins/JPushPlugin.h" /> <header-file src="src/ios/Plugins/JPushPlugin.h" />
<source-file src="src/ios/Plugins/JPushPlugin.m" /> <source-file src="src/ios/Plugins/JPushPlugin.m" />
<header-file src="src/ios/Plugins/JPushDefine.h" />
<header-file src="src/ios/Plugins/AppDelegate+JPush.h" /> <header-file src="src/ios/Plugins/AppDelegate+JPush.h" />
<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-2.2.0.a" framework="true" /> <source-file src="src/ios/lib/jpush-ios-3.0.0.a" framework="true" />
<source-file src="src/ios/lib/jcore-ios-1.0.0.a" framework="true" />
<resource-file src="src/ios/PushConfig.plist" /> <resource-file src="src/ios/PushConfig.plist" />
<framework src="CFNetwork.framework" weak="true" /> <framework src="CFNetwork.framework" weak="true" />
<framework src="CoreFoundation.framework" weak="true" /> <framework src="CoreFoundation.framework" weak="true" />
<framework src="CoreTelephony.framework" weak="true" /> <framework src="CoreTelephony.framework" weak="true" />

View File

@ -9,7 +9,7 @@
* Copyright (c) 2011 ~ 2015 Shenzhen HXHG. All rights reserved. * Copyright (c) 2011 ~ 2015 Shenzhen HXHG. All rights reserved.
*/ */
#define JPUSH_VERSION_NUMBER 2.2.0 #define JPUSH_VERSION_NUMBER 3.0.0
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
@ -31,6 +31,13 @@ extern NSString *const kJPFNetworkDidLoginNotification; // 登录成功
extern NSString *const kJPFNetworkDidReceiveMessageNotification; // 收到消息(非APNS) extern NSString *const kJPFNetworkDidReceiveMessageNotification; // 收到消息(非APNS)
extern NSString *const kJPFServiceErrorNotification; // 错误提示 extern NSString *const kJPFServiceErrorNotification; // 错误提示
typedef NS_OPTIONS(NSUInteger, JPAuthorizationOptions) {
JPAuthorizationOptionNone = 0, // the application may not present any UI upon a notification being received
JPAuthorizationOptionBadge = (1 << 0), // the application may badge its icon upon a notification being received
JPAuthorizationOptionSound = (1 << 1), // the application may play a sound upon a notification being received
JPAuthorizationOptionAlert = (1 << 2), // the application may display an alert upon a notification being received
};
/*! /*!
* *
*/ */
@ -186,7 +193,7 @@ extern NSString *const kJPFServiceErrorNotification; // 错误提示
/*! /*!
* *
* ()nilhttp://docs.jiguang.cn/client/ios_api/#api-ios * ()nilhttps://docs.jiguang.cn/jpush/client/iOS/ios_api/
* setTags:alias:fetchCompletionHandle:block里面处理设置结果即可. * setTags:alias:fetchCompletionHandle:block里面处理设置结果即可.
* WARN: 使block时需要注意循环引用问题 * WARN: 使block时需要注意循环引用问题
*/ */
@ -243,7 +250,7 @@ callbackSelector:(SEL)cbSelector
+ (void)stopLogPageView:(NSString *)pageName; + (void)stopLogPageView:(NSString *)pageName;
/*! /*!
* @abstract * @abstract
* *
* @param pageName * @param pageName
* @param seconds * @param seconds
@ -364,7 +371,6 @@ callbackSelector:(SEL)cbSelector
* @abstract * @abstract
* *
* @param notificationKey * @param notificationKey
* @param myUILocalNotification
* @discussion [removeNotification:] * @discussion [removeNotification:]
*/ */
+ (void)deleteLocalNotificationWithIdentifierKey:(NSString *)notificationKey __attribute__((deprecated("JPush 2.1.9 版本已过期"))); + (void)deleteLocalNotificationWithIdentifierKey:(NSString *)notificationKey __attribute__((deprecated("JPush 2.1.9 版本已过期")));

Binary file not shown.