gearing up for push notifications

18
Text Gearing up for Push Notifications “If I have seen further it is by standing on the shoulders of giants.” - Sir Isaac Newton 1

Upload: keith-moore

Post on 22-Jun-2015

102 views

Category:

Mobile


1 download

DESCRIPTION

Temp

TRANSCRIPT

Page 1: Gearing up for push notifications

Text

Gearing up for Push Notifications“If I have seen further it is by standing on the shoulders of giants.”

- Sir Isaac Newton

1

Page 2: Gearing up for push notifications

Keith D. Moore• Independent Software Consultant• KD Moore Consulting• http://www.kdmooreconsulting.com• [email protected]• @keithdmoore94

2

Page 3: Gearing up for push notifications

What is a Push Notification?A method of notifying a user that an event has occurred and allowing the user to launch the application associated with it.

3

Page 4: Gearing up for push notifications

Push Notification Qualities• Asynchronous• Delivered even if the

app is not running• Sent to the app, if in

the foreground• May contain

additional data in its payload that can be used by the app

4

Page 5: Gearing up for push notifications

Push Notification Guidelines• Should not be abused• Message should be

short• Not intended for

mission critical events

5

Page 6: Gearing up for push notifications

Why do we need a Push Server ?• Because we are lazy developers

6

Page 7: Gearing up for push notifications

Why do we need a Push Server ?• Capitalize on the work of

others• Focus on our application• Separation of Concerns• Multiple disparate systems

integration

7

Page 8: Gearing up for push notifications

Push Notification Servers

8

Page 9: Gearing up for push notifications

AeroGear• Backed by Red Hat• Active community• Good documentation• Rest API based• Other services (OTP,

Crypto, Geofencing)

9

Page 10: Gearing up for push notifications

Aerogear Unified Push Server• Supports Android

and iOS platforms• Cordova Plugin• Open Source• Can be hosted in

the Cloud or internally

• Java Sender API• Admin UI

10

Page 11: Gearing up for push notifications

Aerogear Unified Push Server• deviceToken (unique device identifier)• alert (“New Contact ‘John Smith’ added”)• alias (“[email protected]”)• categories (“recruiter”, “sales”)• variants (“iOS Free”, “Android Free”)• ttl (time to live)• deviceTypes (“iPad”, “iPhone”,

“AndroidTablet”)

11

Page 12: Gearing up for push notifications

AeroGear Unified Push Server

12

Page 13: Gearing up for push notifications

Aerogear on OpenShift(PaaS)• Backed by RedHat• Convenient• Practically free• Extremely easy to setup

• Aerogear UPS Cartridge• MySQL 5.5 Cartridge

• Nice command line tools• Jenkins Support• Docker support coming soon

13

Page 14: Gearing up for push notifications

Aerogear UPS Android Setup• Create a Google API project• Obtain Google API project

number• Obtain API Credentials Public

Key

14

Page 15: Gearing up for push notifications

Aerogear UPS iOS Setup• Setup Apple iOS developer

account (pay the $99)• Create Apple App ID• Create SSL Certificate for

APNs• Create Apple Provisioning

Profile

15

Page 16: Gearing up for push notifications

Aerogear UPS Common Setup• Install Aerogear Unified Push Server

(Locally, OpenShift or wherever)• Login to Aerogear Unified Push

Server with default credentials• Add Push Application

• Add Variant(s)• Android - Provide Google API

project number and API Key• iOS - Upload certificate and

provide passphrase

16

Page 17: Gearing up for push notifications

Server/Client App Setup Checklist• Setup server side application to

send push notifications• Setup mobile client by providing

push server url, variant info, etc.

17

Page 18: Gearing up for push notifications

Credits/Links• http://aerogear.org • https://www.openshift.com• http://developer.android.com/google/gcm/index.htm

l• https://developer.apple.com/notifications• http://aerogear.org/docs/unifiedpush/aerogear-push-

ios/

• All images, copyrights and trademarks belong to their respective owners. We are not directly affiliated with any of these companies.

18