16 Replies Latest reply on Mar 4, 2013 8:04 AM by Eva María González Vior

    Android Push (GCM) - Device ID is coming back blank

      I'm trying to get push messages working on Android through GCM. (I have iPhone push working no problem).

      I've followed the documentation through, I've enabled and configured the relevant API in the Google API console (and got the correct project id).

      However, whenever I call System.get_property('device_id') to get the registered device id, it just returns an empty string.

      I'm building on RhoHub with version 3.5.1.12

       

      Here is the relevant section of my build.yml file:

       

      android:

        android_title: 0

        push:

          sender: 1234567890123

          notifications: background

      capabilities:

        - push

       

      Any help anyone can offer would be much appreciated.

       

      Thanks,

      Stephen