0

Google says that the GoogleCloudMessaging object is required for upstream messaging, which I believe is part of Google Play services. Glass does not have Google Play Services and has been opened as an issue to Google.

I've gotten downstream messaging to work on Glass using an older GCM API with the help of this post, however none of the questions I've seen (1, 2, 3) address upstream messaging. I was able to use the older GCM API as it did not require Google Play Services but unfortunately it doesn't support upstream messaging.

Can anyone please help me somehow implement upstream messaging on Glass? Perhaps there is a way to add Google Play Services to Glass?

Thanks

Community
  • 1
  • 1
cooltoast
  • 297
  • 2
  • 3
  • 8
  • Not an answer to your question, but I just thought you should know that C2DM will be [completely shut down](https://developers.google.com/android/c2dm/) on July 30, 2015. There is also no way to add Play services to Glass. You could make POST requests from Glass as a form of "upstream" communication, though. – Koh Jun 05 '15 at 23:55
  • @Koh thanks for the input, I'd rather have downstream and upstream messaging go through GCM (see the flow diagrams [here](http://www.grokkingandroid.com/upstream_messages_with_google_cloud_messaging/)), instead of POST requests for upstream. Also, are you sure there is no way to add Google Play Services to Glass? – cooltoast Jun 06 '15 at 00:16
  • No official way, sorry. – Koh Jun 06 '15 at 00:22
  • @Koh is there an unofficial way? I'm open to trying anything to hack this together – cooltoast Jun 06 '15 at 00:26

0 Answers0