PhoneGap: Open external link in default browser (outside the app)

前端 未结 16 1737
我在风中等你
我在风中等你 2020-12-09 15:36

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.

16条回答
  •  隐瞒了意图╮
    2020-12-09 16:22

    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-module element to direct cordova to load the plugin javascripts, then no

提交回复
热议问题