Cannot receive push notifications using Android/GeoLoqi/GCM- everything looks good in the logs
  • As the title says I have a shell Android application patterned from the GeoLoqi Android Getting Started documentation and cannot get it to receive push notifications.

    - I've used a valid Google API Key to Generate a valid GCM Sender ID
    - Which is valid in my geoloqi.properties file.
    - The Geoloqi Client ID and Client Sercret keys are also in the geoloqi.properties file.
    - I have a valid Layer and Group setup in the geoloqi developer console.
    - I have successfully installed the geoloqi jar file.
    - My androidManifest is also setup properly.
    - I am able to get my application subscribed to a layer and group.
    - Through LogCat I can see LQSession and LQTracker do their things successfully.
    - I've tried MOCK_LOCATION permissions and NO MOCK permissions.
    - I've actually published my app on Google Play.

    I cannot get this application to receive push notifications. What...am...I...missing?

    Here is the log output from LogCat. I have all of this 'setup' working in my similar iOS app. I'm pulling my hair out. Please help! Anyone!
    Some of this log is peppered with other messages. I'm referring to the LQTracker and LQSession messages.










    10-03 20:12:45.616: I/LQTracker(5148): Ignoring fix request, tracker not running 'adaptive' profile.


    10-03 20:12:47.827: V/LQSession(5148): [ppe2n13y]: Response received with status 'HTTP/1.1 200 OK'.


    10-03 20:12:47.850: V/LQSession(5148): [ppe2n13y]: Request was successful!


    10-03 20:12:47.850: I/LQTracker(5148): Tracker switching from profile OFF to ADAPTIVE.


    10-03 20:12:49.663: D/LQTracker(5148): Location fix received from network provider with accuracy 110.0!


    10-03 20:12:49.709: D/LQTracker(5148): Location fix received from network provider with accuracy 110.0!


    10-03 20:12:49.733: D/LQTracker(5148): Duplicate update received from network provider.


    10-03 20:12:49.811: I/LQTracker(5148): Need to send 1 batched fixes.


    10-03 20:12:49.874: V/LQSession(5148): [dmqopkvc]: Executing new API request.


    10-03 20:12:49.874: V/LQSession(5148): [dmqopkvc]: Sending request to 'https://api.geoloqi.com/1/location/update'.


    10-03 20:12:50.030: D/dalvikvm(5148): GC_FOR_MALLOC freed 3823 objects / 571792 bytes in 68ms


    10-03 20:12:50.928: I/LQDeviceMessagingReceiver(5148): Successfully registered for push messaging.


    10-03 20:12:50.952: V/LQSession(5148): [8h51h0io]: Executing new API request.


    10-03 20:12:50.975: V/LQSession(5148): [8h51h0io]: Sending request to 'https://api.geoloqi.com/1/account/set_gcm_token'.


    10-03 20:12:51.553: V/LQSession(5148): [dmqopkvc]: Response received with status 'HTTP/1.1 200 OK'.


    10-03 20:12:51.569: V/LQSession(5148): [dmqopkvc]: Request was successful!


    10-03 20:12:51.569: D/LQTracker(5148): Sent 1 fixes successfully!


    10-03 20:12:51.592: I/LQTracker(5148): Updating adaptive profile to 1296000 ms / 1800.0 meters.


    10-03 20:12:52.608: D/CordovaLog(5148): Reading preferences for platform Android and getting preference setting com.geoloqi.sdk.preference.SESSION_ACCESS_TOKEN


    10-03 20:12:52.608: D/CordovaLog(5148): file:///android_asset/www/js/script_base.js: Line 91 : Reading preferences for platform Android and getting preference setting com.geoloqi.sdk.preference.SESSION_ACCESS_TOKEN


    10-03 20:12:52.608: I/Web Console(5148): Reading preferences for platform Android and getting preference setting com.geoloqi.sdk.preference.SESSION_ACCESS_TOKEN at file:///android_asset/www/js/script_base.js:91


    10-03 20:12:52.741: D/CordovaLog(5148): got access token: 279a3-5d940028a860db8a43221ba2736579eede7b5404


    10-03 20:12:52.741: D/CordovaLog(5148): file:///android_asset/www/js/script_base.js: Line 95 : got access token: 279a3-5d940028a860db8a43221ba2736579eede7b5404


    10-03 20:12:52.741: I/Web Console(5148): got access token: 279a3-5d940028a860db8a43221ba2736579eede7b5404 at file:///android_asset/www/js/script_base.js:95


    10-03 20:12:52.741: D/CordovaLog(5148): Reading preferences for platform Android and getting preference setting com.geoloqi.sdk.preference.SESSION_ACCESS_TOKEN


    10-03 20:12:52.749: D/CordovaLog(5148): file:///android_asset/www/js/script_base.js: Line 112 : Reading preferences for platform Android and getting preference setting com.geoloqi.sdk.preference.SESSION_ACCESS_TOKEN


    10-03 20:12:52.749: I/Web Console(5148): Reading preferences for platform Android and getting preference setting com.geoloqi.sdk.preference.SESSION_ACCESS_TOKEN at file:///android_asset/www/js/script_base.js:112


    10-03 20:12:52.795: D/CordovaLog(5148): got userid: 279a3-5d940028a860db8a43221ba2736579eede7b5404


    10-03 20:12:52.795: D/CordovaLog(5148): file:///android_asset/www/js/script_base.js: Line 116 : got userid: 279a3-5d940028a860db8a43221ba2736579eede7b5404


    10-03 20:12:52.795: I/Web Console(5148): got userid: 279a3-5d940028a860db8a43221ba2736579eede7b5404 at file:///android_asset/www/js/script_base.js:116


    10-03 20:12:52.866: V/LQSession(5148): [8h51h0io]: Response received with status 'HTTP/1.1 200 OK'.


    10-03 20:12:52.874: V/LQSession(5148): [8h51h0io]: Request was successful!


    10-03 20:12:52.874: I/LQService(5148): Successfully sent the active push token to the server.


    10-03 20:12:53.077: D/dalvikvm(5148): GC_FOR_MALLOC freed 2794 objects / 288080 bytes in 86ms


    10-03 20:12:53.374: D/LQTracker(5148): Location fix received from gps provider with accuracy 64.0!


    10-03 20:12:53.530: D/LQTracker(5148): Location fix received from gps provider with accuracy 64.0!


    10-03 20:12:53.561: D/LQTracker(5148): Duplicate update received from gps provider.


    10-03 20:12:54.116: D/CordovaLog(5148): Application has been subscribed to the Geoloqi layer.


    10-03 20:12:54.116: D/CordovaLog(5148): file:///android_asset/www/js/script_base.js: Line 158 : Application has been subscribed to the Geoloqi layer.


    10-03 20:12:54.116: I/Web Console(5148): Application has been subscribed to the Geoloqi layer. at file:///android_asset/www/js/script_base.js:158


    10-03 20:12:54.483: D/CordovaLog(5148): (1st time) Application has been subscribed to the Geoloqi group.


    10-03 20:12:54.491: D/CordovaLog(5148): file:///android_asset/www/js/script_base.js: Line 200 : (1st time) Application has been subscribed to the Geoloqi group.


    10-03 20:12:54.491: I/Web Console(5148): (1st time) Application has been subscribed to the Geoloqi group. at file:///android_asset/www/js/script_base.js:200


    10-03 20:12:54.858: D/CordovaLog(5148): (2nd time) Application has been subscribed to the Geoloqi group.


    10-03 20:12:54.866: D/CordovaLog(5148): file:///android_asset/www/js/script_base.js: Line 215 : (2nd time) Application has been subscribed to the Geoloqi group.


    10-03 20:12:54.866: I/Web Console(5148): (2nd time) Application has been subscribed to the Geoloqi group. at file:///android_asset/www/js/script_base.js:215


    10-03 20:13:03.303: D/LQTracker(5148): Location provider 'gps' is temporarily unavailable.


  • 1 Comment sorted by
  • Have you tried using the message/send API method to see if you can send a message directly? This is a good way to separate testing the GCM keys from testing triggers.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion