android, unity, onesignal — where to place the sound file?

青春壹個敷衍的年華 提交于 2019-12-04 21:43:07
jkasten

You will need to place the OneSignalNotificationRes folder from our Unity Example Project into your Assets/Plugins/Android/ folder. Replace the example icons and sound files with your own.

More details found on the bottom of the 3. Android section in our Unity setup guide.

Thanks.

İn Android,

Just move your .mp3 file to

res/raw folder

So your .mp3 file should be shown as src/raw/onesignal_default_sound.mp3

Then build your code and send push.

Also you can user another file names but you have to add Sound File Name while sending push

Enjoy it ^^

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!