Skip to content

Commit 6393dc6

Browse files
committed
cleanup
1 parent 7912d94 commit 6393dc6

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed

example/ios/Flutter/Flutter.podspec

Lines changed: 0 additions & 18 deletions
This file was deleted.

lib/src/notifications.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,12 @@ class OneSignalNotifications {
6969
/// your app can request provisional authorization.
7070
Future<bool> registerForProvisionalAuthorization(
7171
bool fallbackToSettings) async {
72-
return await _channel
73-
.invokeMethod("OneSignal#registerForProvisionalAuthorization");
72+
if (Platform.isIOS) {
73+
return await _channel
74+
.invokeMethod("OneSignal#registerForProvisionalAuthorization");
75+
} else {
76+
return false;
77+
}
7478
}
7579

7680
/// The OSPermissionObserver.onOSPermissionChanged method will be fired on the passed-in object

0 commit comments

Comments
 (0)