发送通知时,我的徽章编号有问题。
我试过课:http://lessons.runrev.com/m/4069/l/53405-how-do-i-use-push-notifications-with-ios
我工作正常。当我通过livecode向我的应用程序发送通知并打开通知时。徽章编号不会丢失。
下图:
这是我的代码:
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
答案 0 :(得分:0)
在字典中查看iphoneSetNotificationBadgeValue。您可以使用
重置应用图标上的徽章iphoneSetNotificationBadgeValue 0