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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access