2

I am developing an application that needs to send message from my web browser plugin to my android or IOS app client and get response back on the plugin.

I found XMPP as an option for that but it requires separate jabberID(JID) for each client. But I need to use the same ID lets say users Gmail ID on both the plugin and the mobile application.

Is there any work around so that same Id can be used in the plugin and mobile app or if there is a better way to do this.

Manish Patiyal
  • 4,427
  • 5
  • 21
  • 35
  • 1
    Have you looked into using Google Cloud Messaging? (https://developers.google.com/cloud-messaging) – Adam Nov 19 '15 at 22:02
  • thanks adam and ya I just went through the GCM page and figured it out that gcm can be used to send notification to chrome client that solves my problem. – Manish Patiyal Nov 20 '15 at 04:59

1 Answers1

1

You should take a look at Google Cloud Messaging. The underlying protocol is actually XMPP, and it can efficiently push messages between your server (or client!) and Chrome, Android and iOS.

It also comes with powerful features like Device Groups, which let you send a single push message to Google and have it pushed out to numerous devices at once.

For your specific use case, check out the Chrome and Android docs for GCM.

Sam Gammon
  • 1,457
  • 10
  • 16