JHH
JHH

Reputation: 9285

Best setup for GCM based mobile push on AWS

I am creating a backend service running on AWS, and I will have mobile clients on Android and later on also on iOS. I need mobile push functionality in order to push events from the backend services to the devices.

Now, I am having several concerns on what the best setup is:

Upvotes: 2

Views: 1031

Answers (1)

Alex Kneller
Alex Kneller

Reputation: 413

I will divide my answer in two parts workflow and benefits.

Workflow (in my project)

  1. mobile app send notification token and device unique id to my server.
  2. server check if this device exist in DB or not.
  3. if not create endpoint and subscribe to amazon SNS topic , if exist check if token was updated then update endpoint attribute (token).
  4. Also on server exist implementation of sending notification with amazon SDK
  5. On front end exist interface for sending notification.

Benefits

SNS is not only for mobile push notification but also emails and some other AWS services.

Another big benefit is SNS topics.Your can group all your endpoint in one topic, so you will send only one request and amazon will handle publishing it to thousands devices in seconds

Upvotes: 1

Related Questions