Merge remote-tracking branch 'jpush/master' into test

This commit is contained in:
George 2015-09-10 20:13:45 +08:00
commit 138fde1587
2 changed files with 5 additions and 2 deletions

View File

@ -28,6 +28,9 @@ l## JPush PhoneGap Plugin ##
<meta-data android:name="JPUSH_APPKEY" android:value="your appkey"/>
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)

View File

@ -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);
}