OneSignal / OneSignal-Cordova-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Ionic, PhoneGap CLI, PhoneGap Build, Cordova, or Sencha Touch app with OneSignal. Supports Android, iOS, and Amazon's Fire OS platforms. https://onesignal.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Notification small icon not displayed instead a blank gray background shows up. Large icon shows properly
  2. Notification sound is not played until permission is given from settings
  3. 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