10

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!

seinecle
  • 10,118
  • 14
  • 61
  • 120
  • 3
    Here's an up-to-date Android client that works with the latest versions of Meteor: https://github.com/delight-im/Android-DDP – caw Nov 10 '14 at 00:48

4 Answers4

5

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:

Community
  • 1
  • 1
Tom Söderlund
  • 4,743
  • 4
  • 45
  • 67
  • 1
    There is a [C# DPP Client](https://github.com/sonyarouje/DDPClient.NET/blob/master/Net.DDP.Client/DDPClient.cs) on GitHub, described in [DDPClient.NET– .NET Client For The Meteor Distributed Data Protocol](http://dotnet.dzone.com/articles/ddpclientnet%E2%80%93-net-client) which might be a useful start point for anyone writing an Android or general Java client. – Francis Norton May 24 '13 at 10:42
4

Not sure why no one mentioned this, but there is a Java DDP client library:

https://github.com/kutrumbo/java-ddp-client

FYI, I've forked this and fleshed it out quite a bit. I started writing an Android app with it and found it missing a lot of stuff to get it to work properly:

https://github.com/kenyee/java-ddp-client

I also wrote up an Android layer over this to make things easier and will check it into Github as soon as I figure out how to get it to work w/ Gradle in Eclipse (can't get it to recognize the android-libraries plugin so none of the references to the Android library work)-: I did write an Android app using all this stuff...look in the Play store for "Meteor.js Party" which matches Meteor's Parties sample.

kenyee
  • 2,309
  • 1
  • 24
  • 32
4

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

kenyee
  • 2,309
  • 1
  • 24
  • 32
  • Hi, trying to run the MeteorPartiesDDPClient example. But it does not work . It is not able to connect to the server. The error is "websocket initialisation error. (Exception in callback?)". – srinivas Feb 20 '15 at 10:01
0

Clients can communicate with Meteor through its DDP protocol (specs). Look at the list of independent DDP implementations for common platforms.

naXa stands with Ukraine
  • 35,493
  • 19
  • 190
  • 259