Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaffolding on Android #16

Open
fcavola opened this issue Oct 23, 2013 · 8 comments
Open

Scaffolding on Android #16

fcavola opened this issue Oct 23, 2013 · 8 comments

Comments

@fcavola
Copy link

fcavola commented Oct 23, 2013

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.

@fabricematrat
Copy link
Member

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 [email protected] 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//issues/16
.

Best regards,

http://rivieragug.org/
http://3musket33rs.github.com/

@fcavola
Copy link
Author

fcavola commented Oct 24, 2013

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

@fcavola
Copy link
Author

fcavola commented Oct 24, 2013

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 ?)

@fabricematrat
Copy link
Member

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 [email protected] 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//issues/16#issuecomment-26980329
.

Best regards,

http://rivieragug.org/
http://3musket33rs.github.com/

@fcavola
Copy link
Author

fcavola commented Oct 24, 2013

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) ?

@fabricematrat
Copy link
Member

Could y ou send me the code or put it on github ?
Le 24 oct. 2013 12:26, "fcavola" [email protected] 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//issues/16#issuecomment-26981336
.

@fcavola
Copy link
Author

fcavola commented Oct 24, 2013

Sure, can you give me your mail address?

@fabricematrat
Copy link
Member

[email protected]

On Thu, Oct 24, 2013 at 3:27 PM, fcavola [email protected] wrote:

Sure, can you give me your mail address?


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-26991721
.

Best regards,

http://rivieragug.org/
http://3musket33rs.github.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants