[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