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.
2 parents 570532a + d9e8ece commit 6249244Copy full SHA for 6249244
lib/src/notifications.dart
@@ -119,6 +119,9 @@ class OneSignalNotifications {
119
120
Future<void> lifecycleInit() async {
121
_permission = await _channel.invokeMethod("OneSignal#permission");
122
+ addPermissionObserver((permission) {
123
+ _permission = permission;
124
+ });
125
return await _channel.invokeMethod("OneSignal#lifecycleInit");
126
}
127
0 commit comments