Top Banner
iOS Notifications Just do it without even opening the App www.letsnurture.co m
20

iOS Notifications

Apr 13, 2017

Download

Mobile

Ketan Raval
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: iOS Notifications

iOS NotificationsJust do it without even opening the App

www.letsnurture.com

Page 2: iOS Notifications

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

Page 3: iOS Notifications

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

Page 4: iOS Notifications

Local Notification

Local Notification has 3 general properties

1.Scheduled Time

2.Notification Type

3.Custom Date

www.letsnurture.com

Page 5: iOS Notifications

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

Page 6: iOS Notifications

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

Page 7: iOS Notifications

Remote Notification - Basic Architecture

www.letsnurture.com

Page 8: iOS Notifications

Pushing remote notifications from Multiple Providers to multiple devices

www.letsnurture.com

Page 9: iOS Notifications

Keys and values of the aps directory

1.alert

2.badge

3.sound

4.content-available

5.category

www.letsnurture.com

Page 10: iOS Notifications

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

Page 11: iOS Notifications

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

Page 12: iOS Notifications

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

Page 13: iOS Notifications

Simple Notification Format

www.letsnurture.com

Page 14: iOS Notifications

Enhanced Notification Format

www.letsnurture.com

Page 15: iOS Notifications

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

Page 16: iOS Notifications

Define actions and let user take it

Page 17: iOS Notifications

Custom Actions

www.letsnurture.com

Page 18: iOS Notifications

Design Today widget the right way

www.letsnurture.com

Page 19: iOS Notifications

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

Page 20: iOS Notifications

Visit www.letsnurture.com for more.

www.letsnurture.com