Note that there are some explanatory texts on larger screens.

plurals
  1. POchildBrowser plugin on phonegap build not working
    primarykey
    data
    text
    <p>I am building a phonegap + jquery mobile App, I am trying to add a link that will open a web page in a child browser with the childbrowser phonegap plugin.</p> <p>I see in the adobe phonegap build site that in order to add the childbrowser plugin I just need to add:</p> <pre><code>&lt;gap:plugin name="com.phonegap.plugins.childbrowser" /&gt; </code></pre> <p>in the config.xml file</p> <p><a href="https://build.phonegap.com/plugins/2" rel="nofollow">See this link</a></p> <p>I did That and it is not working What am I missing here?</p> <p>Thank you.</p> <p>this is my code:</p> <pre><code>&lt;!DOCTYPE HTML&gt;&lt;html&gt; &lt;head&gt; &lt;meta name = "viewport" content = "user-scalable=no,width=device-width" /&gt; &lt;meta http-equiv="Content-type" content="text/html; charset=utf-8"&gt; &lt;title&gt;Test Page&lt;/title&gt; &lt;link rel="stylesheet" href="js/jquery.mobile-1.4.0/demos/css/themes/default/jquery.mobile-1.4.0.min.css"&gt; &lt;script type="text/javascript" charset="utf-8" src="cordova.js"&gt;&lt;/script&gt; &lt;script src="js/jquery.mobile-1.4.0/demos/js/jquery.js"&gt;&lt;/script&gt; &lt;script src="js/jquery.mobile-1.4.0/demos/js/jquery.mobile-1.4.0.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" charset="utf-8"&gt; function init(){ document.addEventListener("deviceready", ready, true); } function ready() { console.log("phonegap is ready !"); } &lt;/script&gt;&lt;/head&gt; &lt;body onload="init();"&gt; &lt;div data-role="page" id="home"&gt; &lt;div data-role="content"&gt; &lt;a href="#" onClick="window.plugins.childBrowser.showWebPage('http://www.google.com')"&gt;Open link in child browser !&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p> </p> <p>and this is my config.xml file</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" id = "il.co.app.chazak" versionCode="1.0" version = "1.0"&gt; &lt;preference name="phonegap-version" value="3.1.0" /&gt; &lt;name&gt;chazak&lt;/name&gt; &lt;description&gt;Chazak book librery&lt;/description&gt; &lt;author href="http://www.shtibel.com" email="dushy@shtibel.com"&gt;Dushy&lt;/author&gt; &lt;preference name="phonegap-version" value="2.9.0" /&gt; &lt;preference name="orientation" value="default" /&gt; &lt;preference name="target-device" value="universal" /&gt; &lt;preference name="fullscreen" value="false" /&gt; &lt;preference name="webviewbounce" value="true" /&gt; &lt;preference name="prerendered-icon" value="true" /&gt; &lt;preference name="stay-in-webview" value="true" /&gt; &lt;preference name="ios-statusbarstyle" value="default" /&gt; &lt;preference name="detect-data-types" value="true" /&gt; &lt;preference name="exit-on-suspend" value="false" /&gt; &lt;preference name="show-splash-screen-spinner" value="true" /&gt; &lt;preference name="auto-hide-splash-screen" value="true" /&gt; &lt;preference name="disable-cursor" value="true" /&gt; &lt;preference name="android-minSdkVersion" value="7" /&gt; &lt;preference name="android-maxSdkVersion" value="17" /&gt; &lt;preference name="android-installLocation" value="auto" /&gt; &lt;preference name="splash-screen-duration" value="0" /&gt; &lt;preference name="load-url-timeout" value="0" /&gt; &lt;feature name="http://api.phonegap.com/1.0/file"/&gt; &lt;feature name="http://api.phonegap.com/1.0/notification"/&gt; &lt;icon src="icon/iphone/Icon.png" gap:platform="ios" width="57" height="57" /&gt; &lt;icon src="icon/iphone/Icon-72.png" gap:platform="ios" width="72" height="72" /&gt; &lt;icon src="icon/iphone/Icon-2x.png" gap:platform="ios" width="114" height="114" /&gt; &lt;icon src="icon/iphone/Icon-72-2x.png" gap:platform="ios" width="144" height="144" /&gt; &lt;icon src="icon/android/ldpi.png" gap:platform="android" gap:density="ldpi" /&gt; &lt;icon src="icon/android/mdpi.png" gap:platform="android" gap:density="mdpi" /&gt; &lt;icon src="icon/android/hdpi.png" gap:platform="android" gap:density="hdpi" /&gt; &lt;icon src="icon/android/xhdpi.png" gap:platform="android" gap:density="xhdpi" /&gt; &lt;gap:splash src="splash/iphone/Default.png" width="320" height="480" /&gt; &lt;gap:splash src="splash/iphone/Default-2x.png" width="640" height="960" /&gt; &lt;gap:splash src="splash/iphone/Default-568h2x.png" width="640" height="1136" /&gt; &lt;gap:splash src="splash/iphone/Default-Portrait.png" width="768" height="1024 " /&gt; &lt;gap:splash src="splash/android/ldpi.png" gap:platform="android" gap:density="ldpi" /&gt; &lt;gap:splash src="splash/android/mdpi.png" gap:platform="android" gap:density="mdpi" /&gt; &lt;gap:splash src="splash/android/hdpi.png" gap:platform="android" gap:density="hdpi" /&gt; &lt;gap:plugin name="com.phonegap.plugins.childbrowser" version="4.2.1" /&gt; &lt;access origin="*" /&gt; &lt;access uri="*" subdomains="true" /&gt; &lt;/widget&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload