Hi guys I am getting the following error when trying to run the emulator: drupalgap_deviceready() - failed connection to http://example.com - SyntaxError: Unexpected token < - Check your device's connection and check that http://exmple.com is online. If you continue to have problems visit www.drupalgap.org for troubleshooting info. ops, sorry drupalgap_deviceready() - failed connection to http://localhost/drupal/mobile-application - SyntaxError: Unexpected token < - Check your device's connection and check that http://localhost/drupal/mobile-application is online. If you continue to have problems visit www.drupalgap.org for troubleshooting info. What version of PhoneGap are you using? 2.9.0? Oh, i am not sure. I am using drupalgap-7.x-1.4 Have just downloaded in the website You'll need PhoneGap 2.9.0 for now... if you downloaded it directly from their website, by default it will give you 3.x something... If you'd like to use 3.x of phonegap... it is possible, more info: https://github.com/signalpoint/DrupalGap/issues/193 also, use the development version of the module, and the latest snapshot of the app dev kit: http://ftp.drupal.org/files/projects/drupalgap-7.x-1.x-dev.zip https://github.com/signalpoint/DrupalGap/archive/7.x-1.x-alpha.zip Ok I will try thank you :) I have just tried these two versions but I still get the same error :/ What version of PhoneGap are you using? joaopaulob, ^ So, I am beginner, I am not sure about that. I did exactly as in http://drupalgap.com/hello-world Do i missing something? What page did you download PhoneGap from? FYI... if you put 'frankenstein' into your messages on here, I'll get a notification popup in case I don't come visit this page for a while... I did not downloaded the PhoneGap. The only files that I have are the modules and the app dev kit that you told me. So I think my problem it is because of that Where should I download the phonegap? Oh yeah, I'm sorry, I forgot you mentioned you are using Ripple, right? Ripple in Chrome... Yes The module is enabled and working on your Drupal site? You can verify here: admin/config/drupalgap Yeap. The system connect test was successful, DrupalGap is configured properly! k, please paste that url here http://localhost/drupal/admin/config/drupalgap this? Yeah... And you created http://localhost/drupal/mobile-application so the drupalgap.js file (and many others) lives there? Yes.. Did you create any custom modules in DG? you can also check http://bradkonz.com/mobile-application/ Now, I only did the required modifications Did you copy ripple.index.html and replace index.html with it? yes By visiting the page you linked, it doesn't look like that happened... if you review the JS console... you can see the error message... it tells me that it is trying to include the cordova.js file... to verify, open your index.html file, and make sure there is no include for the cordova.js file my index.html is like that: DrupalGap view-source:http://bradkonz.com/mobile-application/index.html If you paste that into Chrome and visit it, it looks like the cordova.js file is still in the head to me... Basically, Ripple dynamically loads the cordova.js file, so we don't need to include it if we're using RIpple. Ok, my file in the website it was not correct. Now I updated to: DrupalGap but the error continues should I remove any line? Try turning on drupalgap.settings.debug = true in your settings.js file Then watch the console.log in chrome Also, what is your site_path set to in settings.js ? <-- bayousoft has quit () drupalgap.settings.site_path = 'http://bradkonz.com/mobile-application'; I got this error in the console: GET http://bradkonz.com/mobile-application/icon.png 404 (Not Found) Change it to http://bradkonz.co the site_path ^ .com And make sure the DG module is enabled and working correctly on bradkonz.com It was't enable, because I was mainly working on my localhost. Now I enabled POST http://bradkonz.com/?q=drupalgap/drupalgap_system/connect.json 401 (Unauthorized: CSRF validation failed) Are you using FireFox poster to determine that? If so, you must log out in FireFox, then try to do that POST From chrome Where do you get this message from? POST http://bradkonz.com/?q=drupalgap/drupalgap_system/connect.json 401 (Unauthorized: CSRF validation failed) In my chrome console In the emulator I am getting the error: drupalgap_deviceready() - failed connection to http://bradkonz.com - Unauthorized: CSRF validation failed - Check your device's connection and check that http://bradkonz.com is online. If you continue to have problems visit www.drupalgap.org for troubleshooting info. Eating dinner.. brb. ok Log out of your drupal site in Chrome in another tab, then open the mobile-application. Your app is working for me now: http://bradkonz.com/mobile-application/index.html So the problem was your site_path was site to your app's site path, when it should've been set to your Drupal's site path. I think* Ripple :: Environment Warming Up (Tea. Earl Gray. Hot.) ripple.js:37 cordova :: Initialization Finished (Make it so.) ripple.js:37 Failed to load resource: the server responded with a status of 404 (Not Found) http://bradkonz.com/mobile-application/icon.png cordova :: fired deviceready event! ripple.js:37 Failed to load resource: the server responded with a status of 401 (Unauthorized: CSRF validation failed) Working for you? Here its still not working :( Did you logout of your drupal site in another tab? Do that, then clear your browser's cache. Then try it agian. It worked :) Thank you very much Sweet. No prob.