I used Geoloqi API in android app. I created trigger by sending lat,long,radius.To notify user i used C2DM Push Notification.I created a class implementing
LQBroadcastReceiver.Three methods are calling but onPushMessageReceived() method is not called.please help.i given all permissions in manifest file
Main Activity class:
GeoloqiExampleActivity.java
public class GeoloqiExampleActivity extends Activity{
Hey, there's a bug in the currently posted version of the Android SDK that causes onPushMessageReceived to not be called. I have a fix for it in the upstream version of the SDK. I should be pushing that out today or tomorrow with some additional changes. Hold tight!
We made some changes to how the service is initialized, hopefully to make it easier. Please read the new credentials section of the readme and let me know if you have any more questions:
Essentially you need to copy the geoloqi.properties.sample file into /assets/geoloqi.properties and update it with your API key and secret. You can then remove the extras you were passing to the service.
If you're already in the region the trigger will most likely not fire. You'd have to exit the trigger region and re-enter. You can test push messaging directly by using the ID of the user authenticated on the device and the send/message API endpoint:
Also, what sender account are you using? You should have specified one in your geoloqi.properties file. You need to make sure you've followed the Google sign-up process for C2DM:
Ok,one request: current documentation is very brief even given example(in github) also.please provide detail documentation with examples so understanding, developing with geoloqi API will be easier...thanks ...
We're working hard to improve our documentation and definitely value your feedback! Can you list the pages of documentation you consulted before posting here? A list of URLs would be helpful.
EDIT: I've updated our Android push messaging documentation. Hopefully it's easier to understand now! Let us know if you have any more feedback:
I found difficulty in http://developers.geoloqi.com/android/getting-started entire document because only small snippets are there but where to place not given means code flow is missing.for example in page http://developers.geoloqi.com/android/making-api-requests how to make requests is given but when activity is launched session object is null since object is creating in onResume() method. even in sample project also(github) if you want u can check it...so please provide documentation with proper examples.....thanks..