GCM XMPP on Appengine?

Google just announced a new GCM api for IO13 that uses the xmpp protocol. Can i use this api with appengine? It does not look like it will work with XMPP appengine support, but perhaps with new api sockets. Can this be done from an interface, backend, or both?

+4
source share
3 answers

This is not possible with current GAE XMPP support. The problem is user / server addressing: The GAE XMPP API sends messages to users identified by email addresses. It then searches for DNS to record the XMPP SRV server (for example, dig srv _xmpp-server._tcp.gmail.com + short to search for XMPP servers for @ gmail.com addresses). This is not how GCM CCS works - you need to connect to a fixed server.

OTOH, you can use the outgoing socket API and then implement the XMPP protocol.

+5
source

The Google Cloud Messaging team told me: "The Google App Engine does not currently support CCS connectivity."

I looked at the source code of a simple python-xmpp, it is quite easy to port to the App Engine, it only needs python dns, there is no other requirement for a third-party library.

+1
source

Only XMPP endpoints The GCM cloud server needs XMPP support when you want to send your message. If AppEngine does not support XMPP, you can use the older GCM HTTP messaging instead. Only POST HTTP requests are required to send a message to your device.

-1
source

Source: https://habr.com/ru/post/1481457/


All Articles