mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-19 05:22:57 +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)
|
UIUserNotificationTypeAlert)
|
||||||
categories:nil];
|
categories:nil];
|
||||||
} else {
|
} else {
|
||||||
#ifndef __IPHONE_8_0
|
|
||||||
//categories 必须为nil
|
//categories 必须为nil
|
||||||
[JPUSHService registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |
|
[JPUSHService registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |
|
||||||
UIRemoteNotificationTypeSound |
|
UIRemoteNotificationTypeSound |
|
||||||
UIRemoteNotificationTypeAlert)
|
UIRemoteNotificationTypeAlert)
|
||||||
categories:nil];
|
categories:nil];
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user