推送通知徽章不会随Urban Airship更新

时间:2015-05-20 11:41:18

标签: ios objective-c apple-push-notifications urbanairship.com

根据Urban Airship文档,我在application:didFinishLaunchingWithOptions方法上添加了以下代码,用于autobadge更新,但它无效。请帮助我正确编码 UA自动徽章更新

代码:

[[UAirship push] setAutobadgeEnabled:YES];
[[UAirship push] resetBadge];//zero badge

0 个答案:

没有答案