Skip to content

Commit a02fbb0

Browse files
committed
Set wrapper sdk type before calling initialize
* Set the wrapper SDK type first so when initialize is called, the native SDK can check if the SDK is a wrapper type in order to conditionally omit a misleading fatal log * See OneSignal/OneSignal-iOS-SDK#1468
1 parent 66b669b commit a02fbb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/Classes/OneSignalPlugin.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ + (instancetype)sharedInstance {
5656
#pragma mark FlutterPlugin
5757
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
5858

59-
[OneSignal initialize:nil withLaunchOptions:nil];
6059
OneSignalWrapper.sdkType = @"flutter";
6160
OneSignalWrapper.sdkVersion = @"050202";
62-
61+
[OneSignal initialize:nil withLaunchOptions:nil];
62+
6363
OneSignalPlugin.sharedInstance.channel = [FlutterMethodChannel
6464
methodChannelWithName:@"OneSignal"
6565
binaryMessenger:[registrar messenger]];

0 commit comments

Comments
 (0)