gcm&apns architechture

Post on 02-Nov-2015

10 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

gcm & apns architechture

TRANSCRIPT

GCM Work Flow

Application Flow1. First Server initiate with Project Number to GCM Server. 2. GCM Server provide Server Key / Google Api Key to implement to Server Application.3. Client Application sends Sender ID and Application ID to GCM Server for registration.4. Uppon successful registration GCM Server issues Registration ID to Android device.5. Client Application send Registration ID to server.6. Server store Registration ID in the database for later usage.Push Notification Flowa. Whenever push notification is needed, our server sends a message to GCM server along with device registration id (which is stored earlier in the database)b. GCM Server will delivers that message to respected mobile device using device registration id.

APNS Work flow

To enable communication between a provider and a device, Apple Push Notification Service must expose certain entry points to them. But then to ensure security, it must also regulate access to these entry points. For this purpose, APNs requires two different levels of trust for providers, devices, and their communications. These are known as connection trust and token trust.

- Connection Trust

1. Service-to-Device Connection Trust

2. Provider-to-Device Connection Trust

3. Token Generation and Dispersal

- Token Trust (Notification)

top related