mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-02-21 21:43:02 +08:00
fix document about ios in content-avalible
This commit is contained in:
parent
8b3aa0b90e
commit
4e2b2d6bb6
10
README.md
10
README.md
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user