Closed liorfr closed 9 years ago
Hi,
you should not load the Page using the file
protocol, but the server provided by gulp, via localhost
.
Once you've built the files, you should also access them using a webserver. Either something like Apache/nginx or, for example, just upload it to the Public folder of Dropbox/Google Drive and use the generated link.
Let me know, if this helps. If not, can you provide some errors or JS console
output of the demo page?
Best, Christian
Any updates on this?
Yes. I am using the http-server (https://www.npmjs.com/package/http-server) and it works great.
To run locally without a server I am running Chrome with the following command from the cmd : chrome -–allow-file-access-from-files
Hi,
First of all, this project is great !
When I am running the project with “gulp default” the app is loading via loacalhost (http://localhost:3000/demo.html?debug=true) and the giolocation work just fine.
When I am loading the index.html via file on the desktop (file:///C:/Workspaces/ffwdme.js/build/demo.html?debug=true#) the giolocation is not working. I want to package the build folder with cordova and run it as an app on an android but I am having the giolocation problem both on the desktop browser and on the android app
How can I fix this issue
Thanks Lio