iOS Notifications Just do it without even opening the App www.letsnurture.co m
iOS NotificationsJust do it without even opening the App
www.letsnurture.com
Local vs. Remote
Local notifications are delivered on the same device.
Remote notifications(Push Notifications) are sent by server to the APNS(Apple Push Notification service), which pushes to the devices.
www.letsnurture.com
How to Notify Users
An alert or banner
A badge on the app’s icon
A sound that followed by an alert, banner or badge
www.letsnurture.com
Local Notification
Local Notification has 3 general properties
1.Scheduled Time
2.Notification Type
3.Custom Date
www.letsnurture.com
Remote Notification
1.Useful in case of provider(server) / consumer(client) model
2.APNS (Apple Push Notification Service) drives the Remote Notifications
3.You don’t need to have app running to receive Remote Notification
4.Push Notification reduces the overhead as it’s more passive in nature.
5.The notification payload would help you load right resources in the app when user wants to get more details
www.letsnurture.com
Steps to be taken1.Register for Notification types in iOS
2.You can and should schedule local notifications
3.You must register your app with APNS to receive Remote Notifications
4.Handle local and remote notifications to display the details user wants
5.With iOS8 and Higher versions, you can define custom actions associated with Notifications
6.You can send the user a location specific notifications to with iOS8 and Higher
7.You can play a custom alert sounds too for notifications
www.letsnurture.com
Pushing remote notifications from Multiple Providers to multiple devices
www.letsnurture.com
Keys and values of the aps directory
1.alert
2.badge
3.sound
4.content-available
5.category
www.letsnurture.com
Child Properties of the alert property
1.title
2.body
3.title-loc-key
4.title-loc-args
5.action-loc-key
6.loc-key
7.loc-args
8.launch-image
www.letsnurture.com
Sample JSON Payloads{ "aps" : { "category" : "NEW_CATEGORY" "alert” : { “body” : "Message received from Letsnurture”, “action-loc-key” : “VIEW”, }, "badge" : 2, "sound" : “buzz.aiff" }, "account" : "[email protected]", "message" : "message123456"} www.letsnurture.com
Development and Production EnvironmentsDevelopment
Use development environment for development and testing of the provider app. When you are ready to go live change to production environment.
ProductionUse production environment when you are ready to live with you app.
www.letsnurture.com
Notification Center
Today view
An App Extension for quick view of
everything important to users
Notifications
So, you don’t miss a thing
www.letsnurture.com
Define actions and let user take it
Today Widget should
1.Serve up to date content all the time
2.Provide necessary user interactions
3.Manage memory wisely or get ready to get terminated by system
www.letsnurture.com