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
Comment #1
bsmith451 commentedYou 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.
Comment #2
bsmith451 commentedUpdate:
Error in logcat when opening program:
Comment #3
s.daniel commentedHere is my post from http://drupal.org/node/1668494#comment-6213924
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
Comment #4
bsmith451 commentedSuccess!
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?
Comment #5
s.daniel commentedYou 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.
Comment #6
bsmith451 commentedI 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.
Comment #7
tyler.frankenstein commentedClosing this issue. Sounds like the problem has been resolved. Please re-open if need be.