Can you please let me know if you have any MQTT or XMPP based protocol implementation for the Android SDK where an android phone can subscribe and listen for the pushes on phone that it has registered itself to listen to.
It needs to be a continues stream where a server can pass data to the phone as it recognize any changes.
For example . A door open event can simply be push from the server and the Android phone can be notified immediately for that event.
Excellent excellent excellent!! Thanks so much! Where do I get to see the documentation? The Android SDK link https://docs.particle.io/reference/android/ is still showing Coming Soon.
As @ido said, all the docs you’ll need are available in either the javadoc of the relevant classes, or in the README. FWIW, when the docs come (soon!) to the docs.particle.io site, there won’t be any new content there, other than an example of using the event subscription APIs. In short, other than having the nice centralized location and lovely formatting, you aren’t missing out on much with what’s available now.
Speaking of the example, one should be able to infer how to use the subscriptions just from looking at the API itself and the associated javadoc. However, If that’s not the case, please let us know – if it isn’t easy to infer usage from what’s there now, that’s a clue that the javadoc and/or the structure or naming of the API itself isn’t quite right yet!
Sorry if this is kind of a lame reply, but have you just tried cleaning the build or using a newer version of Gradle? What version of the Android Gradle plugin are you using in your prj?
I noticed that it says your project is using multi-dex. If you’re still having trouble after trying a newer gradle and a clean build, I’ll try putting together a multi-dex project and see if any issues are introduced.