From 6a74a1697be080b171a9e72a0a705f5497f55069 Mon Sep 17 00:00:00 2001 From: zhangqinghe Date: Mon, 10 Aug 2015 17:00:16 +0800 Subject: [PATCH 1/3] fix #66 --- src/ios/Plugins/AppDelegate+JPush.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ios/Plugins/AppDelegate+JPush.m b/src/ios/Plugins/AppDelegate+JPush.m index 2ae00e5..dc2db41 100644 --- a/src/ios/Plugins/AppDelegate+JPush.m +++ b/src/ios/Plugins/AppDelegate+JPush.m @@ -20,8 +20,8 @@ static char launchNotificationKey; Method origin; Method swizzle; - origin=class_getClassMethod([self class],@selector(init)); - swizzle=class_getClassMethod([self class], @selector(init_plus)); + origin=class_getInstanceMethod([self class],@selector(init)); + swizzle=class_getInstanceMethod([self class], @selector(init_plus)); method_exchangeImplementations(origin, swizzle); } From 2211e68e683392eff89563311509eb39d87b9094 Mon Sep 17 00:00:00 2001 From: zhangqinghe Date: Mon, 10 Aug 2015 17:19:56 +0800 Subject: [PATCH 2/3] fix #67 --- src/ios/Plugins/AppDelegate+JPush.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ios/Plugins/AppDelegate+JPush.m b/src/ios/Plugins/AppDelegate+JPush.m index 2ae00e5..dc2db41 100644 --- a/src/ios/Plugins/AppDelegate+JPush.m +++ b/src/ios/Plugins/AppDelegate+JPush.m @@ -20,8 +20,8 @@ static char launchNotificationKey; Method origin; Method swizzle; - origin=class_getClassMethod([self class],@selector(init)); - swizzle=class_getClassMethod([self class], @selector(init_plus)); + origin=class_getInstanceMethod([self class],@selector(init)); + swizzle=class_getInstanceMethod([self class], @selector(init_plus)); method_exchangeImplementations(origin, swizzle); } From f54252dd4f28874319c002cf0d066b6adb865c1f Mon Sep 17 00:00:00 2001 From: zhangqinghe Date: Tue, 18 Aug 2015 13:51:26 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=B8=AD=E5=85=B3=E4=BA=8EiOS=20appkey=E7=9A=84=E9=83=A8?= =?UTF-8?q?=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 4506ee9..096f001 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,9 @@ l## JPush PhoneGap Plugin ## +4. 打开`$JPUSH_PLUGIN_DIR/src/ios/PushConfig.plist`文件将文件中的`7d431e42dfa6a6d693ac2d04`替换为在Portal上注册该应用的的Key,例如(9fed5bcb7b9b87413678c407) + + 5. 在`$JPUSH_PLUGIN_DIR/src/android/JPushPlugin.java` 文件`import your.package.name.R`替换为在Portal上注册该应用的包名,例如(com.thi.pushtest)