Android Question GCM Push Notification playing sound

imbault

Well-Known Member
Licensed User
Longtime User
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
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
Top