Skip to content

Commit

Permalink
Merge pull request #523 from slawekkrol/main
Browse files Browse the repository at this point in the history
Add missing fallbackToSettings argument on native iOS side
  • Loading branch information
jkasten2 authored Mar 2, 2022
2 parents 3f03b5f + c37f15f commit 6ddc347
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/Classes/OneSignalPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,10 @@ - (void)setConsentStatus:(FlutterMethodCall *)call withResult:(FlutterResult)res
}

- (void)promptPermission:(FlutterMethodCall *)call withResult:(FlutterResult)result {
BOOL fallbackToSettings = [call.arguments[@"fallback"] boolValue];
[OneSignal promptForPushNotificationsWithUserResponse:^(BOOL accepted) {
result(@(accepted));
}];
} fallbackToSettings:fallbackToSettings];
}

- (void)getDeviceState:(FlutterMethodCall *)call withResult:(FlutterResult)result {
Expand Down

0 comments on commit 6ddc347

Please sign in to comment.