using Worklight server v6.1 i'm trying to develop a simple app that connects to the production server at startup. To get this i do:
- in
initOptions.js
file i setconnectOnStartup
totrue
in
wlCommonInit
method of<my-app>.js
file i call :WL.Client.connect({ onSuccess: connected, onFailure: failure });
where connected
and failure
are two callback to two simple functions that load some data in a listview. When i trie it on a production or development environment i get a spot over my app's layout stating it's loading as you can see in the pic below(even if the application loaded data correctly):
i notice that after installing and running it on an iOS or Android device i don't have this strange behaviour, but on Windows8 devices i do have.
i set to false connectOnStartup and left only the call to WL.Client.connect. Now the app doesn't get blocked anymore(i suppose becouse WL.Client.connect runs asynchronously while WL.Client.init does not but it's only my opinion).
i can't connect to the server yet, this is strange becouse(you can see in the pic) there is a listview filled with data returned by a sql adapter,
so it looks like the app can connect to the server for calling adapters but not for updates