Update AppDelegate+JPush.m

:fix openNotification not fire
This commit is contained in:
DarrenHou 2020-10-20 15:10:56 +08:00 committed by GitHub
parent 07466a8718
commit 4ed04f6837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ NSDictionary *_launchOptions;
}];
if (notification != nil &&
[[UIDevice currentDevice].systemVersion floatValue] < 10.0) {// iOS 10 openNotification
[[UIDevice currentDevice].systemVersion floatValue] >= 10.0) {// iOS 10 openNotification
if (notification.userInfo) {
if ([notification.userInfo valueForKey:UIApplicationLaunchOptionsRemoteNotificationKey]) {