【问题标题】:push notification badge does not reset when app opened - Trigger IO应用打开时推送通知徽章不会重置 - 触发 IO
【发布时间】:2013-09-25 05:58:55
【问题描述】:

如果在打开应用程序时调用,iOS 徽章不会通过 Parse REST 推送通知 API 清除,并且如果我们在触发器 io 提供的应用程序暂停事件上调用 API,它仍然无法清除,因为代码没有在应用程序中执行暂停事件,直到再次恢复应用程序。注意这个问题中提到的不起作用https://www.parse.com/questions/push-notification-badge-not-resetting-via-rest-api

【问题讨论】:

    标签: parse-platform trigger.io


    【解决方案1】:

    您可以使用伪造通知模块重置徽章:

    forge.notification.setBadgeNumber(number, success, error)
    

    https://trigger.io/modules/notification/current/docs/index.html#forgenotificationsetbadgenumbernumber-success-error

    【讨论】:

      猜你喜欢
      • 2013-08-07
      • 1970-01-01
      • 2018-09-08
      • 1970-01-01
      • 2013-04-16
      • 2018-08-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多