Android Notification Not getting Sound And Vibration

前端 未结 4 741
执念已碎
执念已碎 2020-12-11 20:11

I\'ve used FCM Notifications in My app , I\'m Receiving Them and it\'s showing Title And message Perfectly

But,When i\'m receiving the Notification Im not getting an

4条回答
  •  借酒劲吻你
    2020-12-11 20:36

    Try this

    Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
    builder.setSound(alarmSound);
    

提交回复
热议问题