We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f03b5f + c37f15f commit 6ddc347Copy full SHA for 6ddc347
ios/Classes/OneSignalPlugin.m
@@ -203,9 +203,10 @@ - (void)setConsentStatus:(FlutterMethodCall *)call withResult:(FlutterResult)res
203
}
204
205
- (void)promptPermission:(FlutterMethodCall *)call withResult:(FlutterResult)result {
206
+ BOOL fallbackToSettings = [call.arguments[@"fallback"] boolValue];
207
[OneSignal promptForPushNotificationsWithUserResponse:^(BOOL accepted) {
208
result(@(accepted));
- }];
209
+ } fallbackToSettings:fallbackToSettings];
210
211
212
- (void)getDeviceState:(FlutterMethodCall *)call withResult:(FlutterResult)result {
0 commit comments