IOS Troubleshooter (what Ghost series)-the problem of automatically disappearing after receiving a push display

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.