0

I would like to receive notifications in Google Glass (in my Android smartphone I can do this trough Google Cloud Messaging), but in Glass, Google Play Services are not available...

Is there any alternative?

adlagar
  • 877
  • 10
  • 31

2 Answers2

0

The mirror api (server-side) is an alternative to forward the notification as Card to the Glass

mfkenson
  • 123
  • 1
  • 1
  • 7
  • But, with mirror api I can create cards on the Timeline... I want to receive notifications inside any app, is it possible? – adlagar Feb 27 '15 at 10:15
0

Since Google Play Services is not available on Glass, you will need to use socket or bluetooth programming to establish a Glass connection with your phone, from which you can receive notifications from your web server.

At the very least, the Mirror API can start your Glassware using the OPEN_URI menu item. This works in combination with the ACTION_VIEW action and a data android:scheme that matches the OPEN_URI payload.

Koh
  • 1,570
  • 1
  • 8
  • 6
  • Thanks for the answer! what is the best option for you? Is there any example of do this through Mirror API? – adlagar Feb 28 '15 at 11:37
  • Alternatively, you can check out [Notification Sync](https://developers.google.com/glass/develop/gdk/notification-sync), which lets received Android notifications to also be sent to the Glass timeline. – Koh Mar 02 '15 at 19:15
  • But I need to receive the message inside the application, not on the Glass timeline :( – adlagar Mar 02 '15 at 21:24