mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-18 21:12:56 +08:00
Update JPushPlugin.m
1.修复 iOS8 以下不能注册推送的bug
This commit is contained in:
parent
d7fc0d2248
commit
8dba1a4c5e
@ -35,13 +35,11 @@ static NSDictionary *_luanchOptions = nil;
|
||||
UIUserNotificationTypeAlert)
|
||||
categories:nil];
|
||||
} else {
|
||||
#ifndef __IPHONE_8_0
|
||||
//categories 必须为nil
|
||||
[JPUSHService registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |
|
||||
UIRemoteNotificationTypeSound |
|
||||
UIRemoteNotificationTypeAlert)
|
||||
categories:nil];
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user