OneSignal-Android-SDK icon indicating copy to clipboard operation
OneSignal-Android-SDK copied to clipboard

[Bug]: Unresponsive Notifications on Xiaomi Devices

Open bundleberk opened this issue 1 year ago • 0 comments

What happened?

After updating the SDK to 5.1.8, on most of the Xiaomi devices when user clicks a notification, nothing happens.

I believe the issue is the "Display pop-up windows while running in the background" permission in the "other permissions" section on Xiaomi devices is "not granted" by default after installing the app with the 5.1.8 SDK.

After I grant the permission notifications work properly.

Steps to reproduce?

1. Find a Xiaomi device.
2. Install an app that has OneSignal 5.1.8 SDK.
3. Check if the  "display popup windows while running in the background" is granted or not.
4. Send a push notification.
5. Click notification.

try it again after granting the permission from "other permissions".

What did you expect to happen?

I expect the notifications open the app when clicked, in this case notifications disappear when clicked but nothing happens after.

OneSignal Android SDK version

Release 5.1.8

Android version

13, 12, 11, 10, 9

Specific Android models

most of the Xiaomi devices.

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

bundleberk avatar May 01 '24 16:05 bundleberk