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

Ghass_tr created an issue. See original summary.

tyler.frankenstein’s picture

Priority: Major » Normal

Did 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.

Ghass_tr’s picture

Thank 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..

tyler.frankenstein’s picture

Next, 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.

Ghass_tr’s picture

Thank 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





tyler.frankenstein’s picture

Your original comment contained the real problem:

Failed to load resource: net::ERR_NAME_NOT_RESOLVED new.dd:8083/?q=services/session/token:1

The domain new.dd with port 8083 can't be find by your device's connection.

Ghass_tr’s picture

But the domain is working very fine on my browser und on Ripple too. I don't see where the problem is, any other tipps?

tyler.frankenstein’s picture

Is it a domain hosted on your localhost, or is available to all on the Internet?

Ghass_tr’s picture

It's hosted on my localhost.

tyler.frankenstein’s picture

Status: Active » Closed (works as designed)

There'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.

Ghass_tr’s picture

Status: Closed (works as designed) » Fixed

Status: Fixed » Closed (fixed)

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