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 7912d94 commit 6393dc6Copy full SHA for 6393dc6
example/ios/Flutter/Flutter.podspec
lib/src/notifications.dart
@@ -69,8 +69,12 @@ class OneSignalNotifications {
69
/// your app can request provisional authorization.
70
Future<bool> registerForProvisionalAuthorization(
71
bool fallbackToSettings) async {
72
- return await _channel
73
- .invokeMethod("OneSignal#registerForProvisionalAuthorization");
+ if (Platform.isIOS) {
+ return await _channel
74
+ .invokeMethod("OneSignal#registerForProvisionalAuthorization");
75
+ } else {
76
+ return false;
77
+ }
78
}
79
80
/// The OSPermissionObserver.onOSPermissionChanged method will be fired on the passed-in object
0 commit comments