Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to send a push notification and not vibrate the device

I'm trying got send a "silent" push notification to the device that doesn't put anything onto the screen but it triggers reloading some info from the server.

I've stopped it displaying anything on the screen by not setting the alert but the device still vibrates when the notification is received but only if the app is running.

Is it possible to stop the app from vibrating when the app is running and a notification is received?

like image 591
Fogmeister Avatar asked Nov 11 '22 04:11

Fogmeister


1 Answers

If you remove the sound from the alert completely then no sound will play and if your app is closed then your phone won't vibrate.

However, if the app is open the phone will still vibrate.

No way to disable that unfortunately.

like image 61
Fogmeister Avatar answered Nov 14 '22 21:11

Fogmeister