I am attempting to take my AngularJS mobile site and wrap it as a PhoneGap/Cordova Hybrid App using the PhoneGapBuild website. I'm able to successfully upload, build, and install for IOS & Android, however, when running the app on either device I only get a blank white screen.
Additional info:
- This is my first attempt at creating a mobile app.
- I am using build.phonegap.com to build the html assets of my mobile website as a hybrid app for android and ios utilizing the config.xml file (above).
- targets are Android sdk version 7 and iOS as default.
- I'm testing the app on an Android Charge and iPhone 5c
I have used the debugger "weinre" to console.log if "window.cordova" exists and it does not. However, things like "window.angular" and "window._" do exists because I'm loading them from an outside CDN. It looks as though none of my locally referenced assets are loading (confirmed with console.logs in them). I have tried references "/cordova.js", "www/cordova.js", "/www/cordova.js" all to no avail.
Is there a permission or XML configuration I'm missing or something else completely?
To be clear, I am referencing cordova in my index.html file:
<script src="cordova.js"></script>
Here is my config file:
<?xml version="1.0" encoding="utf-8"?>
<widget id="com.tristatetennis.app" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:gap="http://phonegap.com/ns/1.0">
<name>TriStateTennis</name>
<description>Tennis</description>
<content src="index.html" />
<icon src="icon.png" />
<access origin="*" />
<preference name="permissions" value="none" />
<preference name="orientation" value="default" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="true" />
<preference name="webviewbounce" value="true" />
<preference name="prerendered-icon" value="true" />
<preference name="stay-in-webview" value="false" />
<preference name="ios-statusbarstyle" value="black-opaque" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="show-splash-screen-spinner" value="true" />
<preference name="auto-hide-splash-screen" value="true" />
<preference name="disable-cursor" value="false" />
<preference name="android-minSdkVersion" value="14" />
<preference name="android-installLocation" value="auto" />
<plugin name="cordova-plugin-battery-status" />
<plugin name="cordova-plugin-camera" />
<plugin name="cordova-plugin-media-capture" />
<plugin name="cordova-plugin-console" />
<plugin name="cordova-plugin-contacts" />
<plugin name="cordova-plugin-device" />
<plugin name="cordova-plugin-device-motion" />
<plugin name="cordova-plugin-device-orientation" />
<plugin name="cordova-plugin-dialogs" />
<plugin name="cordova-plugin-file" />
<plugin name="cordova-plugin-file-transfer" />
<plugin name="cordova-plugin-geolocation" />
<plugin name="cordova-plugin-globalization" />
<plugin name="cordova-plugin-inappbrowser" />
<plugin name="cordova-plugin-media" />
<plugin name="cordova-plugin-network-information" />
<plugin name="cordova-plugin-splashscreen" />
<plugin name="cordova-plugin-vibration" />
<!-- <plugin name="cordova-plugin-whitelist" version="1" /> -->
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
</widget>
Thanks