unable to set push notification sound in android

后端 未结 3 1056
-上瘾入骨i
-上瘾入骨i 2021-02-14 19:54

I have created the push notification application, I\'m getting the message from GCM services but push notification sound is not working. I need to play sound when I\'m getting n

3条回答
  •  再見小時候
    2021-02-14 20:38

    I use the default notification sound. Maybe this will work:

    mBuilder.setSound(Settings.System.DEFAULT_NOTIFICATION_URI);
    

提交回复
热议问题