We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Android all lifecycleInit method don't complete the Future, java needs a result like iOS do.
iOS
OneSignal-Flutter-SDK/ios/Classes/OSFlutterNotifications.m
Line 106 in 7e921f0
- (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() { OneSignal.getNotifications().addForegroundLifecycleListener(this); OneSignal.getNotifications().addPermissionObserver(this); }
this Future never completes on Android await OneSignal.Notifications.lifecycleInit();
complete the Future
Release 5.2.3
No response
The text was updated successfully, but these errors were encountered:
@victorvhpg thanks for reaching out! We'll look into this.
Sorry, something went wrong.
No branches or pull requests
What happened?
In Android all lifecycleInit method don't complete the Future, java needs a result like iOS do.
iOS
OneSignal-Flutter-SDK/ios/Classes/OSFlutterNotifications.m
Line 106 in 7e921f0
Android
OneSignal-Flutter-SDK/android/src/main/java/com/onesignal/flutter/OneSignalNotifications.java
Line 195 in 7e921f0
Steps to reproduce?
What did you expect to happen?
complete the Future
OneSignal Flutter SDK version
Release 5.2.3
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: