K kohle Active Member Licensed User Longtime User Aug 29, 2018 #1 My app receive firebase notification with the standart sound. sound: "default" In the description at google it says it´s possible to use custom sound like : sound: "your_sound.mp3" The file must be with the app package or in the folder : Library/Sounds My question, in what directory of my project I put the mp3 file ? Thanks
My app receive firebase notification with the standart sound. sound: "default" In the description at google it says it´s possible to use custom sound like : sound: "your_sound.mp3" The file must be with the app package or in the folder : Library/Sounds My question, in what directory of my project I put the mp3 file ? Thanks
R ronell Well-Known Member Licensed User Longtime User Aug 29, 2018 #2 put it in DirAssets then copy the mp3 file in file.DirDefaultExternal or you can use this, see RuntimePermissions.GetSafeDirDefaultExternal("") https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/ Upvote 0
put it in DirAssets then copy the mp3 file in file.DirDefaultExternal or you can use this, see RuntimePermissions.GetSafeDirDefaultExternal("") https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/
Erel B4X founder Staff member Licensed User Longtime User Aug 30, 2018 #3 The sound key will not do anything automatically. It is your app who creates the (local) notification. See NB6 class for an example of playing custom sounds. Upvote 0
The sound key will not do anything automatically. It is your app who creates the (local) notification. See NB6 class for an example of playing custom sounds.