---
title: "Android InAppBrowser events not firing in phonegap build"  
description: "Android InAppBrowser events not firing in phonegap build"  
author: "Anonymous User"  
published: 2013-06-03  
updated: 2013-06-03  
canonical: https://www.mindstick.com/forum/967/android-inappbrowser-events-not-firing-in-phonegap-build  
category: "sencha touch"  
tags: ["sencha touch"]  
reading_time: 1 minute  

---

# Android InAppBrowser events not firing in phonegap build

Hi Guys\
I'm loading an [external](https://www.mindstick.com/articles/12810/how-to-connect-tablet-to-external-monitor-or-flat-screen-tv-using-computer-adapters) [page](https://www.mindstick.com/articles/13031/why-to-make-a-wikipedia-page) with InAppBrowser and it seems like neither loadstart nor loadstop are been fired on Android. **\****My line of [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) as following**\

```
var ref = window.open(url, '_blank', 'location=yes;');ref.addEventListener('loadstart', function() {    console.log('loadstart!');    console.log(event.url);});
```

\
Thanks

## Replies

### Reply by AVADHESH PATEL

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="https://domain.com" 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.


---

Original Source: https://www.mindstick.com/forum/967/android-inappbrowser-events-not-firing-in-phonegap-build

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
