Statement
Welcome reprint, but please keep the original source of the article:)
Blog Park: http://www.cnblogs.com
Farmer Uncle: Http://over140.cnblogs.com
Problem
is supporting Remote Notification, the server has been added to the content-available, the test found a strange problem--does not affect the old version, the new version received the push after the message will automatically disappear. At first thought is the service side of the problem, think less badge and sound parameters caused, with Nwpusher local test a bit to delete also no problem, and then continue to check the code search data ....
Reason
Uiapplication.sharedapplication (). Applicationiconbadgenumber + = 1
This is the line of code caused, would also like to do the Badge effect of the icon, this value is not set to cause, 0 will empty the remote and local push.
Solve
Or do not do Badge effect, delete the code on the line.
IOS Troubleshooter (what Ghost series)-the problem of automatically disappearing after receiving a push display