Meteor cordova app: No re-connect after run android-device

Hi,

I build a meteor cordova app and then I want to start the app using

meteor run android-device --mobile-server 192.168.178.5:3000

That works fine and I have a Meteor connection (Meteor.status().connected => true)

Now I leave the my WLAN and then Meteor.status().connected => false.
Thats also ok, because the connection is lost.

But when I came back (the server is still running), the Meteor Cordova Client is not reconnecting :frowning:

What can I do to get a reconnection ?

Hmm, found this at stackoverflow:

Does it help? Can you open 192.168.178.5:3000 from your mobile browser?

Yeah the server is okay. In the mobile brower it works fine.
The code above helps, but don’t works perfect. It changed it.
The problem occurs only with cordova.

I added a button to call Meteor.reconnect().
Just a work around for my test version.

I think it would help if we could store a server ip in the mobile-config.js file.