diff --git a/README.md b/README.md index b0b40b7..0dd9029 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,13 @@ 在APP_KEY和CHANNLE字段 分别添加您的appkey和channle -3. 添加监听系统事件,相应地调用 JPush SDK 提供的 API 来实现功能 +3. 在AppDelegate.m中包含头文件 + + #import "APService.h" + #import "JPushPlugin.h" + + +4. 在AppDelegate.m文件中,调用 JPush SDK 提供的 API 来实现功能 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ diff --git a/example/index.html b/example/index.html index 8467176..91fb4b7 100644 --- a/example/index.html +++ b/example/index.html @@ -40,7 +40,7 @@ var onReceiveNotification = function(event){ try{ var alert = event.aps.alert; - console.log("JPushPlugin:onReceiveNotification key aps.alert:"+aps); + console.log("JPushPlugin:onReceiveNotification key aps.alert:"+alert); } catch(exeption){ console.log(exception) diff --git a/plugin.xml b/plugin.xml index c0426b6..c23a5e5 100644 --- a/plugin.xml +++ b/plugin.xml @@ -29,7 +29,7 @@ - + diff --git a/src/ios/lib/APService.h b/src/ios/lib/APService.h index d296476..2091916 100644 --- a/src/ios/lib/APService.h +++ b/src/ios/lib/APService.h @@ -4,7 +4,7 @@ // // Created by JPush on 12-8-15. // Copyright (c) 2012年 HXHG. All rights reserved. -// Version: 1.8.1 +// Version: 1.8.2 @class CLRegion; @class UILocalNotification; diff --git a/src/ios/lib/libPushSDK.a b/src/ios/lib/libPushSDK-1.8.2.a similarity index 64% rename from src/ios/lib/libPushSDK.a rename to src/ios/lib/libPushSDK-1.8.2.a index 4d7e306..d6cede8 100644 Binary files a/src/ios/lib/libPushSDK.a and b/src/ios/lib/libPushSDK-1.8.2.a differ