Facing issues with Push notification icon and sound (even with notification click) in Android version < 12
Nykz opened this issue · comments
What happened?
Onesignal push notification works fine in android 12 and above perfectly but in versions less than that the following problems are faced:
- Notification small icon not displayed instead a blank gray background shows up. Large icon shows properly
- Notification sound is not played until permission is given from settings
- When click on notification, opened is not opened if closed. It only opens up, if you have another app opened and then you click on the notification. When i click when no app opened it doesnot open at all.
Tested it in Android 9 Redmi Note 5 pro & Android 11 Redmi Note 8 pro
Steps to reproduce?
Check the below repo to get a look into the code
https://github.com/Nykz/Ionic-7-OneSignal-Push-Notifications
What did you expect to happen?
I expected the issues to be fixed and if this is not a bug then let me know how to solve it as i dont see anything in the documentation
OneSignal Cordova SDK version
5.0.4
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