2016-11-16 1 views
1

Wie kann ich programmatisch Config iOS Push-Benachrichtigung an:Wie programmiere ich die Remote-Benachrichtigung von iOS so, dass sie nur vibriert, keinen Ton spielt oder Ton spielt, ohne zu vibrieren?

not play sound + not vibrate --> OK (Not set `sound` value when push notification) 
not play sound + vibrate --> OK (play custom sound (sound with no sound) .i.e: 'sound': 'mute.aiff')) 
play sound + vibrate? --> OK (Set `sound` i.e. to `default`) 
play sound + not vibrate ??? 

Antwort

0
You can use a silent remote notification 
add the remote-notification key in UIBackgroundModes in your application Info.plist file. 
For more info please check UIBackgroundModes 

<key>UIBackgroundModes</key> 
<array> 
    <string>remote-notification</string> 
</array> 
Verwandte Themen