Hello,
i need to play custom notification sound
Notification builder only support sounds from the external dir which requires writing to sdcard permission and its not suitable for my app
also i tried to load the sound from resources
nb.CustomSound= "android.resource://b4a.example/R.raw.notf"
but it didn't work too
so i decided to use SoundPool to play the notification sound but unfortunately the streamType is hardcoded to STREAM_MUSIC (users always set media volume low)
is it possible to set it to STREAM_NOTIFICATION
thanks in advance
i need to play custom notification sound
Notification builder only support sounds from the external dir which requires writing to sdcard permission and its not suitable for my app
also i tried to load the sound from resources
nb.CustomSound= "android.resource://b4a.example/R.raw.notf"
but it didn't work too
so i decided to use SoundPool to play the notification sound but unfortunately the streamType is hardcoded to STREAM_MUSIC (users always set media volume low)
is it possible to set it to STREAM_NOTIFICATION
thanks in advance