1 person found this helpful
Most likely you have the jQuery and jQuery Mobile libraries referenced externally. I suspect the tutorial was written before some of the new security and whitelisting restrictions were put in place. Without seeing the code or the errors, it is just a guess. You will have to update the config.xml file to allow proper external access. See the docs for more information on this, specifically the whitelist plugin.
It looks like you're not using a config.xml file at all.. review the docs as mentioned by Chris.
Also if you are referencing external libraries from the web as mentioned by Chris, you should actually just download and package them into your app to create a better offline experience.
After adding config.xml it seems my icons are no more working. Do i need to download icons and upload with my build as well? XML has icons path like: res/icon/android/icon-36-ldpi.png which doesn't exist in my folder and i assume default icons should be picked up automatically depending upon the platform i use.
Secondly, is there any guide or reference of adding platform related controls like next , previous or any default controls related to platform? like i added below for back:
<div id="dashboard" data-add-back-btn="true" data-role="page" data-theme="a">
<div data-role="header" data-theme="a">
If you haven't created icons/splash screen images for your app, then you should completely omit the icon/splash screens. PGB will then use some default images.
Here's a barebones config.xml. Since you're starting from scratch, it might be a better place to start:
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
xmlns:android = "http://schemas.android.com/apk/res/android"
id = "com.phonegap.myapp"
version = "2.0.1">
<name>My Phonegap App</name>
Its an app.
<preference name="phonegap-version" value="cli-6.5.0" />
I have used this basic config.xml file but icons still not appearing. I have checked in android and ios but no luck. I was assuming it will pick up platform related icons automatically if i don't add icons myself in the build.