Recording whether my app has received a notification [closed]
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this questionIf the application is not running in the foreground then the OS will display an alert with the notification received for that application.
My question is ..... 开发者_开发百科whether it is possible for me to set some flag in device persistance or is there any way to make a note that my appliction has received notification ?
Beacuse later when the user launches the application (From springBoard and not by clicking 'View' button in push alert), i need to use the flag (whether some notifications received for this app) and has to make some server calls either to get the cached value or the server has to refresh it ... Since some notifications was received.
No, the information of push notification received and not readed is lost, but you can look the badge value if you increment it with each notification.
精彩评论