user3624130
user3624130

Reputation: 37

Server push without GCM on Android

I am currently writing an Android app, and I would like to send push notifications from my server to the phones where this App will be running. Due to security reasons, I would like to avoid any third party server like Google's servers that are used when using GCM (Google Cloud Messaging). How can I achieve that? Or do I need to use a workaround (e.g. polling or working with GCM and encrypting the messages)?

Thank you very much in advance for your help!

Upvotes: 1

Views: 4001

Answers (1)

s.schleu
s.schleu

Reputation: 1361

The easiest way to prevent Google from reading your messages is simply not sending any data to GCM. Use send-to-sync-messages for that. To improve performance use collapse_key.

On receipt of a send-to-sync-message fetch the new data from your webservice. I also used this approach in a recent project with high security requirements.

Upvotes: 3

Related Questions