Hello! I am develloping an App for a project in my university.
I'm using cordova und want to run my Drupal App on a device.
After following the excellent 'Installing Phonegap' documentation to build my app for Android, I ran into the dreaded WSOD issue when starting it (more specifically, my custom splash screen showed up then froze, and the 'Loading' throbber never appeared)... The line "" is already in the index.html file. Second problem i see any cordova.js file in the www directory.. I searched for a cordova.js file und found one in \platforms\android\platform_www i've tryed to link the path to this file in the index.htlm file but the problem persist.
Any help will be appreciated. Thanks!
Comments
Comment #2
tyler.frankenstein commentedDid you set the "mode" in the settings.js file to "cordova"?
EDIT: Also be sure to copy the cordova.js file you found into your project's www directory, then you include the cordova.js file via the index.html file.
Comment #3
Ghass_tr commentedThank you very much for the reply!!
The mode in the settings.js file was set to "phonegap" i changed it to "cordova".
I copied the cordova file in the www directory und iclude it via the index.html file. But the problem is still remaining, i can't emulate the App on my device..
Comment #4
tyler.frankenstein commentedNext, try using the debug tools with Google Chrome or Chromium to connect to and debug your Android device. You'll need to navigate to the Console tab in the debug tools and report any errors thrown there.
Also research many other issues/threads about the DrupalGap WSOD, there are lots of tips and tricks out there.
Comment #5
Ghass_tr commentedThank you for being responsive! There is the report of the errors.
Failed to load resource: file:///android_asset/www/cordova.js/
net::ERR_FILE_NOT_FOUND
Comment #6
tyler.frankenstein commentedYour original comment contained the real problem:
The domain new.dd with port 8083 can't be find by your device's connection.
Comment #7
Ghass_tr commentedBut the domain is working very fine on my browser und on Ripple too. I don't see where the problem is, any other tipps?
Comment #8
tyler.frankenstein commentedIs it a domain hosted on your localhost, or is available to all on the Internet?
Comment #9
Ghass_tr commentedIt's hosted on my localhost.
Comment #10
tyler.frankenstein commentedThere's the reason. Your phone can't connect to your computer's localhost. There are ways around this, just Google something like connect android to localhost to find the workaround. I'll close this issue as it is out of scope for DrupalGap, good luck and happy coding.
Comment #11
Ghass_tr commented