How to open web link inside the app?

6 posts, 0 answers
  1. Jim
    Jim avatar
    1 posts
    Member since:
    May 2013

    Posted 19 Aug 2016 Link to this post

     
    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.

  2. Preslav
    Admin
    Preslav avatar
    203 posts

    Posted 22 Aug 2016 Link to this post

    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.

     
  3. Jean-Marc
    Jean-Marc avatar
    17 posts
    Member since:
    May 2016

    Posted 03 Mar in reply to Preslav Link to this post

    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

  4. Jean-Marc
    Jean-Marc avatar
    17 posts
    Member since:
    May 2016

    Posted 03 Mar in reply to Preslav Link to this post

    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

  5. Jean-Marc
    Jean-Marc avatar
    17 posts
    Member since:
    May 2016

    Posted 03 Mar in reply to Preslav Link to this post

    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

  6. Garo
    Admin
    Garo avatar
    128 posts

    Posted 08 Mar Link to this post

    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.

     
Back to Top