[Reading Notes] iOS network-use push notifications, Reading Notes ios

Source: Internet
Author: User

[Reading Notes] iOS network-use push notifications, Reading Notes ios

1. Local notification

The maximum number of local notifications is 64-bit. Even though, you can still schedule notifications, but the number of notifications arriving at is limited to nearly 64 and sorted by fireDate. The system will ignore the remaining notifications. This means that if there are currently 64 local notifications called, the notification with the fireDate farthest from the current date will be discarded when another notification is called. Cyclic notifications are treated as a single notification because they are automatically rescheduled by the system. If this limit is exceeded, check how to attract users and check whether local notifications are the correct method.

2. Remote notification

The APN load is a JSON object and strictly limited to 256 bytes. Make sure that the load does not exceed this limit. Otherwise, the notification will be rejected by the APN. The load is in the form of a key-value pair, and the top-level namespace is aps.

Considering that each byte count has a limit of 256 bytes, the best practice is to delete the blank and press ENTER line breaks.

 

Reference: iOS network advanced programming-enterprise application development for iPhone and iPad

Related Article

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.