Phonegap Build InAppBrowser

Total Post:104


 3280  View(s)
Rate this:
Hi Everyone!

It is necessary to add any specific setting in config.xml to have inAppBrowser working with phonegap build?

I'm just adding:

var ref =, '_blank');


var ref =, 'blank');

but it doesn't work.

My config xml:

<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "" xmlns:gap = "" id = "com.phonegap.myapp">
    <name>My app</name>
    <preference name="phonegap-version" value="2.7.0" />
    <access origin="*" />
    <preference name="fullscreen" value="false" />

Thanks in advance for your positive response.
  1. Re: Phonegap Build InAppBrowser

    Hi Marcel,

    I do this which will open the in-app browser:, '_blank', 'location=yes,enableViewportScale=yes');

    In your config.xml you should have a lot more than what you have there. This is mine:

    <?xml version="1.0" encoding="UTF-8"?>
    <preference name="AllowInlineMediaPlayback" value="false" />
    <preference name="AutoHideSplashScreen" value="true" />
    <preference name="BackupWebStorage" value="cloud" />
    <preference name="DisallowOverscroll" value="false" />
    <preference name="EnableLocation" value="false" /><!-- DEPRECATED -->
    <preference name="EnableViewportScale" value="false" />
    <preference name="FadeSplashScreen" value="true" />
    <preference name="FadeSplashScreenDuration" value=".25" />
    <preference name="HideKeyboardFormAccessoryBar" value="false" />
    <preference name="KeyboardDisplayRequiresUserAction" value="true" />
    <preference name="KeyboardShrinksView" value="false" />
    <preference name="MediaPlaybackRequiresUserAction" value="false" />
    <preference name="ShowSplashScreenSpinner" value="true" />
    <preference name="SuppressesIncrementalRendering" value="false" />
    <preference name="TopActivityIndicator" value="gray" />
    <content src="index.html" />
        <plugin name="Device" value="CDVDevice" />
        <plugin name="Logger" value="CDVLogger" />
        <plugin name="Compass" value="CDVLocation" />
        <plugin name="Accelerometer" value="CDVAccelerometer" />
        <plugin name="Camera" value="CDVCamera" />
        <plugin name="NetworkStatus" value="CDVConnection" />
        <plugin name="Contacts" value="CDVContacts" />
        <plugin name="Debug Console" value="CDVDebugConsole" />
        <plugin name="Echo" value="CDVEcho" />
        <plugin name="File" value="CDVFile" />
        <plugin name="FileTransfer" value="CDVFileTransfer" />
        <plugin name="Geolocation" value="CDVLocation" />
        <plugin name="Notification" value="CDVNotification" />
        <plugin name="Media" value="CDVSound" />
        <plugin name="Capture" value="CDVCapture" />
        <plugin name="SplashScreen" value="CDVSplashScreen" />
        <plugin name="Battery" value="CDVBattery" />
        <plugin name="Globalization" value="CDVGlobalization" />
        <plugin name="InAppBrowser" value="CDVInAppBrowser" />
    <access origin="*" />

    Yours might be smaller if you don't use all of the features of PhoneGap. You'll definitely need that InAppBrowser plugin however!

      Modified On Mar-30-2018 01:28:46 AM


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.