Skip to content

Commit 6ddc347

Browse files
authored
Merge pull request #523 from slawekkrol/main
Add missing fallbackToSettings argument on native iOS side
2 parents 3f03b5f + c37f15f commit 6ddc347

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ios/Classes/OneSignalPlugin.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,10 @@ - (void)setConsentStatus:(FlutterMethodCall *)call withResult:(FlutterResult)res
203203
}
204204

205205
- (void)promptPermission:(FlutterMethodCall *)call withResult:(FlutterResult)result {
206+
BOOL fallbackToSettings = [call.arguments[@"fallback"] boolValue];
206207
[OneSignal promptForPushNotificationsWithUserResponse:^(BOOL accepted) {
207208
result(@(accepted));
208-
}];
209+
} fallbackToSettings:fallbackToSettings];
209210
}
210211

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

0 commit comments

Comments
 (0)