I have all the setup for the DrupalGap on my test site working (autoload/services/views-datasources) and I have my PhoneGap install on Eclipse that works.
I built a new project based on the directions, and I get a msg that says my DrupalGap isn't responding and I get a white screen of death. I get 'Settings' if I use the menu button in the emulator.
I modified the location of the phonegap.js to be phonegao/phonegap.js because that is where the file is per the instructions.

Here is my index.html that I grabbed from the GIT download and modified to add the cordova.js ref. I think I am real close.

*update: I'm getting the following error now: The connection to the server was unsuccessful. (file:///android_asset/www/index.html)

<!DOCTYPE HTML>
<html>
  <head>
    <title>DrupalGap</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script type="text/javascript" charset="utf-8" src="cordova-1.9.0.js"></script>    
    <script type="text/javascript" charset="utf-8" src="drupalgap/phonegap.js"></script>
    
    <link rel="stylesheet" href="jquery.mobile-1.0.min.css" /> 
    <script src="jquery-1.6.4.min.js"></script>
    <script src="jquery.mobile-1.0.min.js"></script>
    
    <link rel="stylesheet" href="drupalgap/drupalgap.css" />
    <script src="drupalgap/services/comment.js"></script>
    <script src="drupalgap/services/content.js"></script>
    <script src="drupalgap/services/drupalgap.js"></script>
    <script src="drupalgap/services/node.js"></script>
    <script src=
.
.
.

** Update: moved from another thread.

I removed the call to the drupalgap.js file per a followup comment. Testing without ref to drupalgap.js brings up White Screen of Death (WSOD). Click on Menu and get SETTINGS, but nothing happens.

Comments

bsmith451’s picture

You may want to update the developer section of the docs to indicate that the drupalgap\pages\welcome.js file needs to be updated to the users website for testing.

I've been trying 10.0.2.2/your_site in that file, but still get no response.

bsmith451’s picture

Update:
Error in logcat when opening program:

07-10 12:41:51.630: D/CordovaLog(1334): file:///android_asset/www/drupalgap/drupalgap.js: Line 17 : Uncaught TypeError: Cannot call method 'changePage' of undefined
07-10 12:41:51.630: E/Web Console(1334): Uncaught TypeError: Cannot call method 'changePage' of undefined at file:///android_asset/www/drupalgap/drupalgap.js:17

s.daniel’s picture

Here is my post from http://drupal.org/node/1668494#comment-6213924

btw: I got this error most often when there was no connection to the server available on the client. May also be a wrong reference - your reference to both cordova-1.9.0.js and phonegap.js is definetly wrong. Use the cordova file only.
Make sure to check the eclipse LogCat tab within eclipse. I't may provide information on the cause. Also try to upload your www folder to your server and check weather the site is working there. (Lets continue in a new issue though please.)

I was talking about phonegap.js not drupalgap.js!
Phonegap is the same as Cordova just a different name/version of the same thing.

changePage is part of jquery mobile. => Probably jquery and/or jquery mobile could not be found. Check the existance and correct reference.
http://jquerymobile.com/test/docs/api/methods.html

bsmith451’s picture

Success!
I did find that if I edit the welcome.js file to be my site, then I go to DEMO, my site comes up.

I am getting an error on drupalgap.js for line 8 which is the $(document).ready(function() { in the catlog. Would you like me to post the details for you?

s.daniel’s picture

You probably don't want to edit the welcome.js in the first step. In order to run the application in fact you don't need to edit any .js file. You may edit drupalgap.js and change "drupalgap_settings.site_path" but first fix your error.

Whenever there is an error please post all information that could help. However first please check for jquery + jq mobile path + filename as mentioned in #3.

bsmith451’s picture

I got the jquery and jq mobile fixed. There was a syntax error in the file names that I fixed. I will set it back to run again posting any error I get.

tyler.frankenstein’s picture

Status: Active » Fixed

Closing this issue. Sounds like the problem has been resolved. Please re-open if need be.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.