Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can meteor be coupled to an android app?

Tags:

android

meteor

The meteor homepage (www.meteor.com) says in bullet point 8 ("interoperability"):

You can connect anything to Meteor, from native mobile apps to legacy databases to Arduinos. Just implement the simple DDP protocol.

Question: Android is Java, how can it connect to meteor (js)? Any links to useful resources / tutorials would be appreciated!

like image 879
seinecle Avatar asked May 14 '12 10:05

seinecle


2 Answers

DDP stands for Distributed Data Protocol and is specific for Meteor.

There is no built-in Android/Java support yet, but here is an official Meteor DDP client written in Python that you could use as a reference: https://github.com/meteor/meteor/tree/devel/examples/unfinished/python-ddp-client

More information:

  • https://stackoverflow.com/questions/10128430/documentation-or-code-details-on-meteors-ddp-pub-sub-protocol
  • How do I get a live stream of deltas from Meteor collection, for use outside of a webapp?
like image 61
Tom Söderlund Avatar answered Oct 14 '22 22:10

Tom Söderlund


FYI, I wrote up a higher level Android DDP layer that takes care of client state including collection handling.

It's on github and includes Maven artifacts in Maven Central (my version of the java-ddp-client also is in Maven Central): https://github.com/kenyee/android-ddp-client

like image 28
kenyee Avatar answered Oct 14 '22 21:10

kenyee