如何以编程方式将iOS推送通知配置为:
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 ???
答案 0 :(得分: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>