From ebebcf3f8d56fe7ed2eb8bdea5efb9b74059833f Mon Sep 17 00:00:00 2001 From: ys Date: Mon, 6 Jul 2020 11:07:37 +0800 Subject: [PATCH] Bug fixed --- ios/Classes/JPushPlugin.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ios/Classes/JPushPlugin.m b/ios/Classes/JPushPlugin.m index 7551da6..5d22531 100644 --- a/ios/Classes/JPushPlugin.m +++ b/ios/Classes/JPushPlugin.m @@ -29,6 +29,7 @@ static NSMutableArray* getRidResults; @implementation JPushPlugin { NSDictionary *_launchNotification; + NSDictionary *_completeLaunchNotification; BOOL _isJPushDidLogin; JPAuthorizationOptions notificationTypes; } @@ -174,7 +175,7 @@ static NSMutableArray* getRidResults; [JPUSHService setLogOFF]; } - [JPUSHService setupWithOption:_launchNotification + [JPUSHService setupWithOption:_completeLaunchNotification appKey:arguments[@"appKey"] channel:arguments[@"channel"] apsForProduction:[arguments[@"production"] boolValue]]; @@ -476,7 +477,7 @@ static NSMutableArray* getRidResults; #pragma mark - AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - + _completeLaunchNotification = launchOptions; if (launchOptions != nil) { _launchNotification = launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey]; _launchNotification = [self jpushFormatAPNSDic:_launchNotification.copy];