imbault Well-Known Member Licensed User Longtime User May 15, 2015 #1 Hi, is there a way to play a sound you embedded in your app when you receive a notification, other than standard Android notification sound? Thanks
Hi, is there a way to play a sound you embedded in your app when you receive a notification, other than standard Android notification sound? Thanks
imbault Well-Known Member Licensed User Longtime User May 15, 2015 #2 I got that from stackoverflow @Erel , can we do something in B4a? B4X: notification.sound =Uri.parse("android.resource://"+ getPackageName()+"/"+R.raw.pop); notification.defaults |=Notification.DEFAULT_VIBRATE; Upvote 0
I got that from stackoverflow @Erel , can we do something in B4a? B4X: notification.sound =Uri.parse("android.resource://"+ getPackageName()+"/"+R.raw.pop); notification.defaults |=Notification.DEFAULT_VIBRATE;
Erel B4X founder Staff member Licensed User Longtime User May 17, 2015 #3 You can use this library to add a custom sound: https://www.b4x.com/android/forum/threads/notification-builder-library.27376/#content Upvote 0
You can use this library to add a custom sound: https://www.b4x.com/android/forum/threads/notification-builder-library.27376/#content
imbault Well-Known Member Licensed User Longtime User May 17, 2015 #4 Thank you Erel, I'll will try with this library. Regards Upvote 0
imbault Well-Known Member Licensed User Longtime User May 25, 2015 #5 Erel said: You can use this library to add a custom sound: https://www.b4x.com/android/forum/threads/notification-builder-library.27376/#content Click to expand... Sorry @Erel , this library from @barx contains very nice features, but its CustomSound feature does work, nobody can really say where to move audio files, and how to call it's filename or location... Too bad Upvote 0
Erel said: You can use this library to add a custom sound: https://www.b4x.com/android/forum/threads/notification-builder-library.27376/#content Click to expand... Sorry @Erel , this library from @barx contains very nice features, but its CustomSound feature does work, nobody can really say where to move audio files, and how to call it's filename or location... Too bad