This is a migrated thread and some comments may be shown as answers.

How to open web link inside the app?

5 Answers 122 Views
AppBuilder in-browser client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jim
Top achievements
Rank 1
Jim asked on 19 Aug 2016, 07:03 AM
 
openExternalInAppBrowser:  function () {
    window.open("http://www.google.com", "_blank");       
},

 

Hi, I'm trying to modify the in-browser client demo to open up a web link but inside the app (not as a browser client).

Basically I wanted to open a web link inside the app but not on the browser window.

How to I make my app startup and open my hard coded web link in the app (not on a browser window of the app), as in, the web page is part of the app.

(The reason I don't want to open the in-browser client is that I don't want user to type in another web address)

Thanks.

5 Answers, 1 is accepted

Sort by
0
Preslav
Telerik team
answered on 22 Aug 2016, 12:02 PM
Hello Jim,

"location=no" option turns off the InAppBrowser's location bar. I'd suggest checking the plugin documentation for all available options.

In this case, I modified the code snippet as follows:
openExternalInAppBrowser:  function () {
    window.open("http://www.google.com", "_blank", "location=no");      
},

I hope this helps. 

Regards,
Preslav
Telerik by Progress
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Jean-Marc
Top achievements
Rank 1
answered on 03 Mar 2017, 12:42 PM

Hello Preslav,

I have a follow-up question here: is it also possible to use this plugin to implement a view that combines the external page with a header from my app (like in the Facebook app when you open a link for example)?

Best,

Jean-Marc

0
Jean-Marc
Top achievements
Rank 1
answered on 03 Mar 2017, 12:42 PM

Hello Preslav,

I have a follow-up question here: is it also possible to use this plugin to implement a view that combines the external page with a header from my app (like in the Facebook app when you open a link for example)?

Best,

Jean-Marc

0
Jean-Marc
Top achievements
Rank 1
answered on 03 Mar 2017, 12:43 PM

Hello Preslav,

I have a follow-up question here: is it also possible to use this plugin to implement a view that combines the external page with a header from my app (like in the Facebook app when you open a link for example)?

Best,

Jean-Marc

0
Garo
Telerik team
answered on 08 Mar 2017, 09:08 AM
Hello Jean-Marc,

The behavior that you are describing cannot be achieved with the InAppBrowser plugin. A possible alternative is to embed the web page in an iframe, however, this will create a completely different experience.

I hope this is of any help.

Regards,
Garo
Telerik by Progress
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
AppBuilder in-browser client
Asked by
Jim
Top achievements
Rank 1
Answers by
Preslav
Telerik team
Jean-Marc
Top achievements
Rank 1
Garo
Telerik team
Share this question
or