Cordova: DDP method not called

I’m trying to use Cordova together with Meteor but DDP methods are not called from the iOS simulator. The method is called correctly in the browser but nothing happens when “meteor run ios”.

– client{
  'click button'(event, instance) {'hello', 'server');

– server

  'hello'(what) { console.log('hello ' + what) }

Some test code is here:

I guess I’m missing something, I’ve never used Cordova together with Meteor before.

Fixed: Needed to specify --mobile-server http://localhost:3000/ on the command line.