This plugin doesn’t work with cordova 9.x I am no longer able to find any way to place a file in the res/raw for android using monaca.
Posts made by JeremyWJ
RE: OneSignal Custom Sound
I finally figured this out after probably 5+ hours combined of trying. For the next person in the same boat, here’s the solution for both iOS and Android. I hope this helps someone and saves them from the torment I went through trying to figure this out on my own. The audio file in the example below (alarm.wav) is placed in the root of the www folder. You can adjust that as desired.
<resource-file src=“www/alarm.wav” target=“res/raw/alarm.wav” />
<resource-file src=“www/alarm.wav” target=“res/ios/alarm.wav” />
OneSignal Custom Sound
I’m doing the above but it is not working.
<resource dest=“res/raw/alarm.wav” src=“www/sounds/alarm.wav” />
The app builds but when I extract the apk the alarm.wav is not under /res/raw/