Android InAppBrowser events not firing in phonegap build

Total Post:101


 4283  View(s)
Rate this:
Hi Guys

I'm loading an external page with InAppBrowser and it seems like neither loadstart nor loadstop are been fired on Android. 

My line of code as following

var ref =, '_blank', 'location=yes;');
ref.addEventListener('loadstart', function() {

  1. Re: Android InAppBrowser events not firing in phonegap build

    Hi Pravesh!

    Try as following...

    Make sure you load the right cordova-2.x.x.js file

    // Platform: android

    Include the InAppBrowser plugin in res/xml/config.xml

    <plugin name="InAppBrowser" value="org.apache.cordova.InAppBrowser" />

    Write the correct white-list tag (differs from iOS)

    <access origin="" subdomains="true" />

    You really have to include onDeviceReady like in the example files, that did the trick for me.

    document.addEventListener('deviceready', app.onDeviceReady, false);

    I hope it helpful for you.


Please check, If you want to make this post sponsored

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