Open fcavola opened 11 years ago
The problem is linked to the fact you try to contact localhost. The javascript contains the link to the server. In the configuration-bootstrap.js, you will find the url to the server:
baseURL: "http://localhost:8080/${project}/", //Uncomment for Android emulator localhost //baseURL: "http://10.0.2.2:8080/${project}/", //Uncomment before pushing to cloudfoundry //baseURL: "http://${project}.cloudfoundry.com/",
To see what is happening you will have to use the debugger in the browser which is not that easy. There is an option in ipad to see the console log.
So just put the ip address of your server instead and this should do the trick.
On Wed, Oct 23, 2013 at 5:42 PM, fcavola notifications@github.com wrote:
Hi. About your tutorial (only web app with scaffolding, after run-app, not again hybrid application) there are some device limitation with a simple application? (Book example) When i try from my desktop it is ok. When i try from my android or ipad touch and try to "add book" nothing happens. No log in output. How can I debug or trace ? Thank you in advance.
— Reply to this email directly or view it on GitHubhttps://github.com/3musket33rs/html5-mobile-scaffolding/issues/16 .
Best regards,
Thank you Fabrice. I tried but no work. I add a js alert to verify that configuration-bootstrap.js is loaded. I also tried to call run-app with grails.server.host set to my ip (10.0.....). Francesco
In addition. In my android i see the home page (with IP). The problem is related to the action add and so on (maybe forwarding or other ?)
What did you put in your server url in configuration-bootstrap.js (it should be the real ip address where your grails app runs) ?
The 10.0.0.2 is for the emulator on localhost.
On Thu, Oct 24, 2013 at 12:07 PM, fcavola notifications@github.com wrote:
In addition. In my android i see the home page (with IP). The problem is related to the action add and so on (maybe forwarding or other ?)
— Reply to this email directly or view it on GitHubhttps://github.com/3musket33rs/html5-mobile-scaffolding/issues/16#issuecomment-26980329 .
Best regards,
baseURL: "http://10.0.100.70/TestHtml5/" 10.0.100.70 is my real IP. I use a real android, not emulator.
Maybe some settings on tomcat (localhost vs IP) ?
Could y ou send me the code or put it on github ? Le 24 oct. 2013 12:26, "fcavola" notifications@github.com a écrit :
baseURL: "http://10.0.100.70/TestHtml5/" 10.0.100.70 is my real IP. I use a real android, not emulator.
Maybe some settings on tomcat (localhost vs IP) ?
— Reply to this email directly or view it on GitHubhttps://github.com/3musket33rs/html5-mobile-scaffolding/issues/16#issuecomment-26981336 .
Sure, can you give me your mail address?
fabricematrat@gmail.com
On Thu, Oct 24, 2013 at 3:27 PM, fcavola notifications@github.com wrote:
Sure, can you give me your mail address?
— Reply to this email directly or view it on GitHubhttps://github.com/3musket33rs/html5-mobile-scaffolding/issues/16#issuecomment-26991721 .
Best regards,
Hi. About your tutorial (only web app with scaffolding, after run-app, not again hybrid application) there are some device limitation with a simple application? (Book example) When i try from my desktop it is ok. When i try from my android or ipad touch and try to "add book" nothing happens. No log in output. How can I debug or trace ? Thank you in advance.