android - FCM Cloud Messaging SDK no Vibrate -


when phone on silent mode, notification vibrate working well. when not on silent mode, sound working vibration isn't working. want vibrate when on silent mode or not on silent mode

i test fcm sdk v10.2.0 until v11.2.0

i use "notification" , "data" payload

notificationcompat.builder builder = new notificationcompat.builder(context).setwhen(system.currenttimemillis());  //vibrate builder.setvibrate(new long[] { 1000, 1000, 1000, 1000, 1000 });   //light builder.setlights(color.red, 3000, 3000); 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -