Has anyone attempted Google Cloud Messaging from Google Glass?? I am guessing there may be an issue with Google Play services, but I have not looked deep into it yet and wanted to see if anyone had tried.
Asked
Active
Viewed 637 times
2 Answers
2
As people report, there are no Play Services on Glass: issue on google-glass-api tracker. This means you can't use neither GCM, nor Maps API etc.
What is strange though, if you decompile GlassHome.apk, you can see in AndroidManifest.xml
:
<permission android:name="com.google.glass.home.permission.C2D_MESSAGE" android:protectionLevel="signature" />
...
<receiver android:name="com.google.android.gcm.GCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.google.glass.home" />
</intent-filter>
</receiver>
So, it seems like they've got one.
I digged deeper and found, that inside GlassHome.apk they do have com.google.android.gcm
package. So, it seems like, they integrated valuable Play Services parts into GlassHome.apk, but they didn't put that API part into the system.
Glass is in the testing stage, so this situation can change in the near future...

Ostap Andrusiv
- 4,827
- 1
- 35
- 38
-
I noticed this too. I also think that they're using GCM to push down the upload/download commands that are triggered when Glass syncs up to the Google Server. It'd be cool to know more about this. – Clocker Dec 16 '13 at 19:02
1
You can get GCM working (just tested) using the old deprecated way with gcm.jar from the android sdk. See http://androidmyway.wordpress.com/2012/07/09/gcm-demo/

martinpelant
- 2,961
- 1
- 30
- 39
-
Yes, I can confirm this too. I believe the current GCM will be supported in future, but I cannot confirm this. – Patrick Jackson Feb 14 '14 at 14:38