【问题标题】:How to send custom sound push notification with OneSignal?如何使用 OneSignal 发送自定义声音推送通知?
【发布时间】:2016-10-02 14:01:39
【问题描述】:

我想知道如何使用OneSignal 发送自定义声音通知。不幸的是,他们的文档仅涵盖通过仪表板发送:link

我的方法不起作用:

OneSignal.defaultClient().postNotification([
"contents": ["en": "test"],
"include_player_ids": [pushId],
"aps": ["sound": "sound.wav"],
])

这也不起作用:

OneSignal.defaultClient().postNotification([
"contents": ["en": "test"],
"include_player_ids": [pushId],
"sound": "sound.wav",
])

我在这里错过了什么?

【问题讨论】:

    标签: ios swift push-notification onesignal


    【解决方案1】:

    好的,看起来"ios_sound": "sound.wav" 完成了这项工作:

    https://documentation.onesignal.com/reference#page-create-notification

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多