Skip to content
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

Facing issues with Push notification icon and sound (even with notification click) in Android version < 12 #961

Open
2 of 3 tasks
Nykz opened this issue Jan 18, 2024 · 2 comments

Comments

@Nykz
Copy link

Nykz commented Jan 18, 2024

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
@marshall86
Copy link

the issue is still present even in the latest version of the plugin

@marshall86
Copy link

in the meantime, i'll go around the issue using 'capacitor-native-settings' to ask the users to change the settings... not ideal but better than nothing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants