简体   繁体   中英

How can I set badge count of iOS app from its today extension?

I'm looking for a way to update the badge count of iOS app icon from its iOS8 today extension. Today extension has a button and by touching that button, user can increase or decrease badge count of iOS app. Can anyone help me with this?

PS: I need to update the badge count without reopening the app even when the app is terminated.

由于您已经创建了组,您可以在组文件夹中保留一个文件并在扩展名中添加一个文件观察器,从应用程序更新文件,文件观察器将捕获更改,您的工作就完成了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM