I want to develop on my Windows machine and push my changes to an iPad (iOS 7.1.2) test device via direct update. This worked for me in WL 6.1, but since my update to WL 6.2 I'm having some issues. Following scenario describes my problem.
- Create new WL project and add iPad as environment
- Enabled worklightSettings in application-descriptor.xml
- Add the code snippet below to main.js
- Run on Worklight Development Server
- Open project in Xcode via eclipse
- Clean project in Xcode and run on iPad
- Make a change, re-deploy and verify Direct Update is received
- Copy the project to a Windows machine and open in eclipse
- Run on Worklight Development Server on Windows machine
- Open the app settings via Settings.app and enable use Custom Server URL
- Replace the IP of your mac by the IP of your windows machine
- On windows: Make a change and re-deploy
- Restart the app on the iPad
The moment I restart my app I get the following exception in my In the worklight development server console on my Windows machine:
[WARNING ] SRVE0190E: File not found: //apps/services/api/HelloDirectUpdate/ipad/init
[ERROR ] FWLSE0048E: Unhandled exception caught: SRVE0190E: File not found: //apps/services/api/HelloDirectUpdate/ipad/init
When I modify the custom server URL and I remove the last slash, I get the message that an update is available. But when I click update the progress bar in the downloading popup doesn't move. My Windows machine and MAC both have the following WL Studio version: platformVersion="6.2.0.00.20140724-2139". What am I doing wrong?
main.js
function wlCommonInit(){
WL.Client.connect({
onSuccess: onConnectSuccess,
onFailure: onConnectFailure
});
}
function onConnectSuccess() {
WL.Logger.debug("Connect success.");
}
function onConnectFailure() {
WL.Logger.debug("Connect failed.");
}