Skip to content

Commit c37f15f

Browse files
committed
Add missing fallbackToSettings argument on native iOS side
1 parent ba9eca1 commit c37f15f

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
@@ -202,9 +202,10 @@ - (void)setConsentStatus:(FlutterMethodCall *)call withResult:(FlutterResult)res
202202
}
203203

204204
- (void)promptPermission:(FlutterMethodCall *)call withResult:(FlutterResult)result {
205+
BOOL fallbackToSettings = [call.arguments[@"fallback"] boolValue];
205206
[OneSignal promptForPushNotificationsWithUserResponse:^(BOOL accepted) {
206207
result(@(accepted));
207-
}];
208+
} fallbackToSettings:fallbackToSettings];
208209
}
209210

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

0 commit comments

Comments
 (0)