How can we display webpage in webview

#1

I want to display webpage inside ionic page using webview .Anybody has experience of same?

#2

Hi,same logic using,

You can open it using the inAppBrowser plugin,
you can have it here

cordova plugin add cordova-plugin-inappbrowser

You then import it in .ts file
import {InAppBrowser} from 'ionic-native';

Or if you have native 3.x import in ionic native 3.x
import { InAppBrowser } from '@ionic-native/in-app-browser';

use this
let browser = new InAppBrowser('url', '_system'); //For system browser, you'll be prompt to choose your browser if you have more than one let browser = new InAppBrowser('url', '_blank'); //For webview,

get more information here http://ngcordova.com/docs/plugins/inAppBrowser/

#3

Thanks for reply on my post…Right Now I am using InappBrowser but want render external link inside my ionic page .Please reply if you familiar with same

1 Like