|
|
@ -29,6 +29,7 @@ static NSMutableArray<FlutterResult>* getRidResults;
|
|
|
|
|
|
|
|
|
|
|
|
@implementation JPushPlugin {
|
|
|
|
@implementation JPushPlugin {
|
|
|
|
NSDictionary *_launchNotification;
|
|
|
|
NSDictionary *_launchNotification;
|
|
|
|
|
|
|
|
NSDictionary *_completeLaunchNotification;
|
|
|
|
BOOL _isJPushDidLogin;
|
|
|
|
BOOL _isJPushDidLogin;
|
|
|
|
JPAuthorizationOptions notificationTypes;
|
|
|
|
JPAuthorizationOptions notificationTypes;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -174,7 +175,7 @@ static NSMutableArray<FlutterResult>* getRidResults;
|
|
|
|
[JPUSHService setLogOFF];
|
|
|
|
[JPUSHService setLogOFF];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[JPUSHService setupWithOption:_launchNotification
|
|
|
|
[JPUSHService setupWithOption:_completeLaunchNotification
|
|
|
|
appKey:arguments[@"appKey"]
|
|
|
|
appKey:arguments[@"appKey"]
|
|
|
|
channel:arguments[@"channel"]
|
|
|
|
channel:arguments[@"channel"]
|
|
|
|
apsForProduction:[arguments[@"production"] boolValue]];
|
|
|
|
apsForProduction:[arguments[@"production"] boolValue]];
|
|
|
@ -476,7 +477,7 @@ static NSMutableArray<FlutterResult>* getRidResults;
|
|
|
|
#pragma mark - AppDelegate
|
|
|
|
#pragma mark - AppDelegate
|
|
|
|
|
|
|
|
|
|
|
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
|
|
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
|
|
|
|
|
|
|
_completeLaunchNotification = launchOptions;
|
|
|
|
if (launchOptions != nil) {
|
|
|
|
if (launchOptions != nil) {
|
|
|
|
_launchNotification = launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey];
|
|
|
|
_launchNotification = launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey];
|
|
|
|
_launchNotification = [self jpushFormatAPNSDic:_launchNotification.copy];
|
|
|
|
_launchNotification = [self jpushFormatAPNSDic:_launchNotification.copy];
|
|
|
|