-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
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
[Bug]: both addForegroundWillDisplayListener and addClickListener not triggered with hms (huawei) #822
Comments
I'm getting the same issue on Harmony device. Any fix for that ? |
Been having similar behavior, not only on cold start. My app uses some native code for some other SDK. The other SDK had GeneratedPluginRegistrant.register(with: "xxx"), and it was placed AFTER GeneratedPluginRegistrant.register(with: self). The GeneratedPluginRegistrant.register(with: self) has to be at the very end, for both Android and iOS. example for swift:
Tested with latest 5.2.2 and working fine.. all handlers as expected. Hope this helps someone. |
Moving the line "GeneratedPluginRegistrant.register(with: "xxx")" at the very end, fixed the problem for both Android and iOS ? |
It was already there for Android so can't say if the problem was there in the first place. |
Thank you for this solution, @ihijazi! Has this worked for others? Any concern with closing this issue? |
What happened?
It works fine in both Android and ios but it's not being triggered in hms
I have following this to setup
I can receive notifications from both Onesignal BO and my backend service, but nothing happens when I click on
the notification. No error log is displayed on the terminal also
Steps to reproduce?
What did you expect to happen?
Same behavior just like Android and ios, both listeners will be triggered when receive or click on the notification
OneSignal Flutter SDK version
5.0.4
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: