How to open a web page inside an iOS app with phonegap?

前端 未结 2 2025
后悔当初
后悔当初 2020-12-28 11:36

I want to have only one view in my iOS phonegap app.

This view will be a web page.

How can i load this only view with a specific url?

I suppose you d

2条回答
  •  不知归路
    2020-12-28 12:28

    PhoneGap which is now called Apache Cordova on iOS will only let you use a file URL by default. This means you have to load a local .html file. If you want to open a remote page with an http:// URL, you'll need to add custom native code to tell the WebView to load a remote URL.

提交回复
热议问题