推送通知时的徽章编号? - 动态代码

时间:2014-05-29 05:10:25

标签: push-notification livecode

发送通知时,我的徽章编号有问题。

我试过课:http://lessons.runrev.com/m/4069/l/53405-how-do-i-use-push-notifications-with-ios

我工作正常。当我通过livecode向我的应用程序发送通知并打开通知时。徽章编号不会丢失。

下图:

enter image description here

这是我的代码:

on pushNotificationReceived tMessage
   answer "Push Notification Message:" && quote & tMessage & quote with "Okay"
end pushNotificationReceived

on pushNotificationRegistered tSignature
   --   answer "Registered for Push Notification:" && quote & tSignature & quote with "Okay"
end pushNotificationRegistered

1 个答案:

答案 0 :(得分:0)

在字典中查看iphoneSetNotificationBadgeValue。您可以使用

重置应用图标上的徽章
iphoneSetNotificationBadgeValue 0
相关问题