fix document about ios in content-avalible

This commit is contained in:
zhangqinghe 2015-04-24 14:49:20 +08:00
parent 8b3aa0b90e
commit 4e2b2d6bb6

View File

@ -68,6 +68,16 @@ l## JPush PhoneGap Plugin ##
[[NSNotificationCenter defaultCenter] postNotificationName:kJPushPluginReceiveNotification
object:userInfo];
}
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
// IOS 7 Support Required
[APService handleRemoteNotification:userInfo];
[[NSNotificationCenter defaultCenter] postNotificationName:kJPushPluginReceiveNotification
object:userInfo];
completionHandler(UIBackgroundFetchResultNewData);
}
7. 在js中调用函数,初始化jpush sdk