Hi there !
I'm training at sencha touch frame work, i've build a small application with ajax call.
I've use Sencha CMD to build native app over Android (sencha app build native), that's working nice except ajax call url is not found !
In my App, i use Ajax like this (ajax just send true or false):
Code:
Ext.Ajax.request({
url: "services/user/online",
success: function(response){
Ext.fly("canvasloader-container").destroy();
if(eval(response.responseText)) {
Ext.Viewport.removeAll(true, true);
Ext.Viewport.add(Ext.create("App.view.Main")).show();
} else {
Ext.Viewport.removeAll(true, true);
Ext.Viewport.add(Ext.create("App.view.Login")).show();
}
}
});
You can see that i'm using only a minimal URL, this is working on web server.
But when i use my app in Android native App that's fail !
I've write in my app.json file the following parameters, but it's seems sencha cmd do not care of it
Code:
"url": "http://myServerAlias:8080/myApp/",
I've miss something ? Is my parameter good ? If i call the url in navigator of the android terminal that's working (so no DNS trouble)).
Thank for reading !