Reputation: 2730
I've created an Android app in Worklight Developer Edition.
When I change the connectOnStartup
property to true
in the initOptions.js
file and then install the application on the device, on startup, in LogCat I see:
Client init failed. Connection to the service is not available.
And in the app there's a dialog with:
The application failed connecting to the service.
Can anyone help me?
Upvotes: 0
Views: 1055
Reputation: 44526
Make sure your device and host are using the same WiFi network...
To verify your device is able to connect to the server, open a mobile browser app (either the stock app or Chrome or otherwise, doesn't matter) and load http://your-server-address:10080/your-project-name/console
Upvotes: 1