-
Notifications
You must be signed in to change notification settings - Fork 233
Closed
Description
What happened?
In Android all lifecycleInit method don't complete the Future, java needs a result like iOS do.
iOS
| - (void)lifecycleInit:(FlutterMethodCall *)call withResult:(FlutterResult)result { |
- (void)lifecycleInit:(FlutterMethodCall *)call withResult:(FlutterResult)result {
[OneSignal.Notifications addForegroundLifecycleListener:self];
[OneSignal.Notifications addPermissionObserver:self];
result(nil);
}
Android
OneSignal-Flutter-SDK/android/src/main/java/com/onesignal/flutter/OneSignalNotifications.java
Line 195 in 7e921f0
| private void lifecycleInit() { |
private void lifecycleInit() {
OneSignal.getNotifications().addForegroundLifecycleListener(this);
OneSignal.getNotifications().addPermissionObserver(this);
}
Steps to reproduce?
this Future never completes on Android
await OneSignal.Notifications.lifecycleInit();What did you expect to happen?
complete the Future
OneSignal Flutter SDK version
Release 5.2.3
Which platform(s) are affected?
- iOS
- Android
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
dvmatyun
Metadata
Metadata
Assignees
Labels
No labels