I\'m trying to open links in Safari (on an iPhone) from a PhoneGap application. I\'m using PhoneGap version 3.1.0, and use PhoneGap Build, to build the application.
I had the same problem that you and the solution was include phonegap.js file to the in all the pages where I will use the InAppBrowser.
All your code it's ok! The only thing you need add is: in your section on your index.html
This is a little weird because Phonegap in his plugin documentation section says:
"If a plugin utilizes the
js-moduleelement to direct cordova to load the plugin javascripts, then noreferences will be necessary to load a plugin. This is the case for the core cordova plugins"
And InAppBrowser is a core cordova plugin. But for some strange reason don't work until you include it the phonegap.js file (at least in 0.3.3 version).
NOTE: I found a bug. Some people says that you have to include 3 files: phonegap.js, cordova.js and cordova_plugins.js. But when I include this 3 files my app works fine in iOS 7, but in iOS 6 ignore the use of the plugin (Using: Cordova 3.3.0 + Phonegap Build + InAppBrowser 0.3.3).
You can see more in my SO question.
Hope this can help you!