【问题标题】:Push Notifications to tags in BlueMix将通知推送到 BlueMix 中的标签
【发布时间】:2016-04-06 09:15:34
【问题描述】:

我正在尝试使用 Bluemix 服务推送 REST API 中的消息服务向订阅了先前创建的标签的用户发送推送通知。问题是当我向多个标签发送通知时,如果用户注册了多个标签,他会多次收到相同的通知。

API 是这样说的:

tagNames (Array[string], optional): Send notification to the devices that have subscribed to any of these tags

所以我知道用户应该只收到一个通知,而不是正在发生的事情。

我的电话是这样的:

{
    "message": { 
        "alert": "Text notification",
    }, 
    "target": { 
        "tagNames": ["TAG1","TAG2","TAG3","TAG4","TAG5","TAG6","TAG7"] 
    },
    "settings": {
        "apns": {
            "badge": 1,
            "sound": "UILocalNotificationDefaultSoundName"
        }
    }
}

【问题讨论】:

    标签: push-notification ibm-cloud ibm-mobile-services


    【解决方案1】:

    与 Bluemix Push 开发团队确认这确实是服务中的一个缺陷,在这种情况下您应该只会收到一个通知。团队已经为该问题创建了一个缺陷,一旦它被解决并投入生产,我将使用修复中的任何其他信息或使用更改来更新此答案。

    非常感谢您提醒我们注意这一点

    【讨论】:

    • 感谢您的快速回复:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-11-16
    • 1970-01-01
    • 2016-05-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-01
    相关资源
    最近更新 更多