After integrating the InAppBrowser plugin with cordova 3.3, I encountered an issue. When I initially call:
ref = window.open('http://www.google.de', '_blank', 'location=yes');
inside my onDeviceReady function, everything works perfectly.
However, when I try to call a similar function after onDeviceReady has completed:
function LinkDropBox() {
ref = window.open('http://www.google.de', '_blank', 'location=yes');
}
The error console displays the following message:
"Uncaught TypeError: Property 'open' of [object global] object is not a function"
Does anyone have any suggestions on how to resolve this?
I've already attempted the following:
typeof window.open
Both in the LinkDropBox and onDeviceReady functions, resulting in:
- In onDeviceReady it returns "function"
- In LinkDropBox it returns "string"