Skip to content

Commit

Permalink
Merge pull request #932 from OneSignal/feat/switch_order_to_set_wrapp…
Browse files Browse the repository at this point in the history
…er_sdk

Set wrapper sdk type before calling initialize
  • Loading branch information
nan-li authored Aug 15, 2024
2 parents 66b669b + a02fbb0 commit 29dc397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/Classes/OneSignalPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ + (instancetype)sharedInstance {
#pragma mark FlutterPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {

[OneSignal initialize:nil withLaunchOptions:nil];
OneSignalWrapper.sdkType = @"flutter";
OneSignalWrapper.sdkVersion = @"050202";

[OneSignal initialize:nil withLaunchOptions:nil];

OneSignalPlugin.sharedInstance.channel = [FlutterMethodChannel
methodChannelWithName:@"OneSignal"
binaryMessenger:[registrar messenger]];
Expand Down

0 comments on commit 29dc397

Please sign in to comment.