Cordova : open Smartphone browser

4 posts, 0 answers
  1. Saluts92
    Saluts92 avatar
    7 posts
    Member since:
    Mar 2016

    Posted 14 Apr Link to this post

    Hello,

    I wish to draw the smartphone browser. If it is already open I show the active page, if I open the browser (without URL).
    Is this possible without PLUGIN?
    Otherwise what plugin is needed?

    I tried window.open but you really need to give a URL: this is not what I'm looking

    Thank you
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 18 Apr Link to this post

    Hi,

    To load an external web page inside a hybrid Cordova-powered mobile app, I would recommend using the InAppBrowser plugin.

    If you want to pass data back and forth between the app and the InAppBrowser window, this blog post might be helpful. 

    In addition, you can try out the InAppBrowser sample which illustrates how to do so. Please note the version currently available in AppBuilder is 1.0.0. You could include the latest version of the plugin instead - as to working with various plugins in AppBuilder, please refer to the documentation on Import Custom Plugins

    If you import the latest version of the plugin, then please note the core InAppBrowser plugin which is enabled in all build configurations by default should be disabled. You can choose which plugins to enable when you build with the debug and the release configurations as explained in the documentation on Configure the Core Plugins.

    Regards,
    Dimitrina
    Telerik
     

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

     
  3. Saluts92
    Saluts92 avatar
    7 posts
    Member since:
    Mar 2016

    Posted 19 Apr in reply to Dimitrina Link to this post

    Hi,

    Thank you, but it's not exactly what I want.
    I just want to call the Smartphone browser.
    If it is already running, then I want to display the current page, and if it is not running I want to start.

    Is it possible ?

  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 21 Apr Link to this post

    Hi,

    Developing hybrid app in Telerik Platform would mean that you will build an app leveraging Cordova. In Cordova native device functionality can be accessed through plugins. Once such plugin, which is also a core plugin in AppBuilder, is the InAppBrowser - you could open a specific link in the system browser with the correct target:
    The target in which to load the URL, an optional parameter that defaults to _self. (String)
    • _self: Opens in the Cordova WebView if the URL is in the white list, otherwise it opens in the InAppBrowser.
    • _blank: Opens in the InAppBrowser.
    • _system: Opens in the system's web browser.​

    You could consider using any other Cordova plugin which would work better for you. As to working with such in AppBuilder, please refer to the documentation on Import Custom Plugins.

    Regards,
    Dimitrina
    Telerik
     

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

     
Back to Top