Update JPushPlugin.m

1.修复 iOS8 以下不能注册推送的bug
This commit is contained in:
Pikachu 2016-03-25 19:43:10 +08:00
parent d7fc0d2248
commit 8dba1a4c5e

View File

@ -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
}
}