Additional Client-side Notification Handling
Now that you’ve pulled off the basics of push notifications, let’s look at three additions to notification handling in the client application: pushing sounds and badges, receiving notifications while running, and using notification data when not running.
Sounds and badges
When Notified registers for notifications, it specifies that it can also receive sound and badge notifications. A sound notification’s JSON payload contains the filename of a sound, and the notified application will search its application bundle for a matching file and play it if it exists. This sound file must follow the same rules as a system sound: less than 30 seconds and in a raw data format. Locate Sound12.aif that you used ...
Get iOS Programming: The Big Nerd Ranch Guide, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.