How to hide url bar in inapp browser

hi guys,
I want to open external link in inappbrowser, but I don’t want to show the URL to users which I am get diverted

help me to achieve this, soon

this is the code I am using now.

    this.inAppBrowser.create(this.website,'_blank',{ location: 'yes',zoom: 'yes'} );

3 Likes

i am also looking into it

use like this

import { InAppBrowser , InAppBrowserOptions } from '@ionic-native/in-app-browser';

options : InAppBrowserOptions = {
    location : 'yes',//Or 'no' 
    hidden : 'no', //Or  'yes'
    zoom : 'yes',//Android only ,shows browser zoom controls 
    hideurlbar:'yes',//Or 'no'

};
constructor(private theInAppBrowser: InAppBrowser) {

}

public openWithInAppBrowser(url : string){
    let target = "_blank";
    this.theInAppBrowser.create(url,target,this.options);
}
1 Like

you can hide the toolbar using the ‘toolbar’ option.

For example:

ref = window.open('http://some.page/foo/', '_blank', 'location=no,toolbar=no');

hi, @muthukumar02

you just need to set location to no and it’ll hide the URL bar.

this.inAppBrowser.create(this.website,'_blank',{ location: 'no',zoom: 'yes'} );

1 Like