Open gabrielvrebac opened 8 months ago
@gabrielvrebac Thanks for reporting!
We were able to reproduce a problem with HMS push not firing INotificationClickListener
as well.
On your 2nd question, the INotificationServiceExtension
only works for HMS pushes if you use huawei_msg_type
as "data"
. OneSignal set this to "message"
by default as the reliability is lower for the "data"
message type, due to limitations of HMS Core on the device.
What happened?
After migrating from OneSignal SDK v4.8.6 to v5.1.5, the
OneSignal.Notifications.addClickListener
no longer works on Huawei (HMS) devices when clicking on a push notification.I also checked out the OneSignal example code and overwrote the following to send a push via our OneSignal project:
applicationId
in the "app/build.gradle"appId
in the "MainApplication.java"The push notification arrives on GMS and HMS. However, the
INotificationClickListener
only works on GMS but not on HMS. The implementation of "INotificationServiceExtension" (here) does not work with HMS either.Steps to reproduce?
What did you expect to happen?
After clicking on the push notification on a HMS device, the
INotificationClickListener
, which is set in the MainApplication (here), should be triggered and the log should contain the following output "INotificationClickListener.onClick fired with event: com.onesignal.notifications.internal.NotificationClickEvent@3e09b8f"OneSignal Android SDK version
Release 5.1.5
Android version
12
Specific Android models
Relevant log output
Code of Conduct