Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vibrate in push notification

Tags:

iphone

How can I set that device should vibrate if a push notification come to my application?

like image 928
Saurabh Avatar asked Dec 03 '10 12:12

Saurabh


People also ask

Why is my phone not vibrating notifications?

Turn off Silent Mode & Disable Do Not Disturb Whether you use an iPhone or Android, your phone won't vibrate if it is in Do Not Disturb or Silent mode. If that's the case, you already know what to do: disable both of them. If your phone is in Do Not Disturb or Silent mode, you should see the icons in the status bar.

How do you make custom notification vibrate?

Tap any app to bring up a list of your currently installed apps. Tap each app on this list that you want to set up a custom notification vibration pattern for, then press the Pick Apps button at the bottom. Press contains anything for an overview of the options you can choose for the custom notification.


2 Answers

I just figured out one way to do this: if you want to phone to only vibrate on receipt of a push notification, you need to have a silent sound file in your application bundle, for example "silence.aif" ... if you specify that sound file in the APS notification, the iOS device will "play" the silence.aif from your application bundle, but since the sound is silence, there is nothing to hear. However the notification vibration is still triggered :-)

like image 118
Jesse Hammons Avatar answered Sep 17 '22 01:09

Jesse Hammons


I don't think it is possible to instruct the notification to vibrate. If you set a sound using soundName the notification will vibrate if the iPhone has Vibrate set to ON in Settings > Sounds, i.e. it depends on the settings of the individual iPhone.

like image 25
Robert Höglund Avatar answered Sep 17 '22 01:09

Robert Höglund