File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ + (instancetype)sharedInstance {
77
77
#pragma mark FlutterPlugin
78
78
+ (void )registerWithRegistrar : (NSObject <FlutterPluginRegistrar>*)registrar {
79
79
80
+ [OneSignal initWithLaunchOptions: nil ];
80
81
[OneSignal setMSDKType: @" flutter" ];
81
82
82
83
// Wrapper SDK's call init with no app ID early on in the
@@ -153,7 +154,6 @@ - (void)setAppId:(FlutterMethodCall *)call withResult:(FlutterResult)result {
153
154
[self handleInAppMessageClicked: action];
154
155
}];
155
156
156
- [OneSignal initWithLaunchOptions: nil ];
157
157
[OneSignal setAppId: call.arguments[@" appId" ]];
158
158
159
159
// If the user has required privacy consent, the SDK will not
@@ -292,7 +292,6 @@ - (void)removeExternalUserId:(FlutterMethodCall *)call withResult:(FlutterResult
292
292
293
293
- (void )initNotificationOpenedHandlerParams {
294
294
[OneSignal setNotificationOpenedHandler: ^(OSNotificationOpenedResult * _Nonnull result) {
295
- [OneSignal onesignalLog: ONE_S_LL_VERBOSE message: @" setNotificationOpenedHandler called from addObservers" ];
296
295
[OneSignalPlugin.sharedInstance handleNotificationOpened: result];
297
296
}];
298
297
}
You can’t perform that action at this time.
0 commit comments