mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-04-19 00:03:45 +08:00
Update JPushPlugin.m
1.修复 iOS8 以下不能注册推送的bug
This commit is contained in:
@@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user