I know how to create silent push notifications (with playing a sound file that is silent). I would also like to send a push notification that doesn't vibrate phone.
When setting silent sound file as suggested below phone still vibrates when it is locked or when the app is not active.
My payload that still vibrates:
{
aps = {
alert = {
"loc-key" = "SOME_KEY";
};
badge = 1;
sound = "silence.caf";
};
}
Is this possible?
sound
key, then no sound will be played. Settingsound=""
is interpreted as a non-existing file, which will lead to the default sound being played. – Nonrigid