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.
1 parent ba9eca1 commit c37f15fCopy full SHA for c37f15f
ios/Classes/OneSignalPlugin.m
@@ -202,9 +202,10 @@ - (void)setConsentStatus:(FlutterMethodCall *)call withResult:(FlutterResult)res
202
}
203
204
- (void)promptPermission:(FlutterMethodCall *)call withResult:(FlutterResult)result {
205
+ BOOL fallbackToSettings = [call.arguments[@"fallback"] boolValue];
206
[OneSignal promptForPushNotificationsWithUserResponse:^(BOOL accepted) {
207
result(@(accepted));
- }];
208
+ } fallbackToSettings:fallbackToSettings];
209
210
211
- (void)getDeviceState:(FlutterMethodCall *)call withResult:(FlutterResult)result {
0 commit comments