OneSignal-Cordova-SDK
OneSignal-Cordova-SDK copied to clipboard
[Bug]: Custom sound on Android plays only after first reboot
What happened?
After first installation, notifications does not play the custom sound and is silent. After a reboot, notification sound is ok. I'm using Ionic Framework with Capacitor.
- [email protected]
- @awesome-cordova-plugins/[email protected]
Steps to reproduce?
- I tried multiple combination and the problem persists:
-- app built in debug mode and in release mode
-- app installed directy with Android Studio and app downloaded from store (internal test channel)
-- Android with API 31/32/33
-- Device Pixel 4 and Nexus 5X
- I installed the app and send a test notification from Onesignal Dashboard (the notification contains info about channel and custom sound)
- The device receives the notifications but plays no sound
- I reboot the device from the OS
- After the reboot, the same notification plays normally with my custom sound.
- At this point, if I uninstall and reinstall the app, custom sound plays normally right after installation (no further reboot is required).
What did you expect to happen?
Custom sound shoud play normaly after first installation
OneSignal Cordova SDK version
onesignal-cordova-plugin 3.3.0
Which platform(s) are affected?
- [ ] iOS
- [X] Android
Relevant log output
I'm unable to spot something interesting in LogCat.
Code of Conduct
- [X] I agree to follow this project's Code of Conduct