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

Cordova : open Smartphone browser

3 Answers 71 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Saluts92
Top achievements
Rank 1
Saluts92 asked on 14 Apr 2016, 06:32 AM
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

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 18 Apr 2016, 12:30 PM
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.

 
0
Saluts92
Top achievements
Rank 1
answered on 19 Apr 2016, 07:43 AM

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 ?

0
Dimitrina
Telerik team
answered on 21 Apr 2016, 02:36 PM
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.

 
Tags
Apache Cordova
Asked by
Saluts92
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Saluts92
Top achievements
Rank 1
Share this question
or