Open URL in browser instead of mobile app

Open URL in browser instead of mobile app

  

Hi,

I am able to link a button to a URL, however it opens in the app. I would like the link to be opened in the phone's application browser instead, is there a way to achieve this?

Thanks.

Regards,
Jerome

Solution

Hi Jerome

You can use this plugin to open either in-app or to redirect to the default browser


Hope this helps!

  -CLSJ

Solution

Hi Jerome,

There's no need to use a plugin just to achieve this. You can use a JavaScript element in your click handler with the following script:

window.open('https://www.google.com', '_system');

This opens the URL in the device's browser.

Aurelio Junior wrote:

Hi Jerome,

There's no need to use a plugin just to achieve this. You can use a JavaScript element in your click handler with the following script:

window.open('https://www.google.com', '_system');

This opens the URL in the device's browser.

hi Aurelio

Do u have an working example of it. 

i need to implement it in my mobile application but currently my links are opening inside my app.


Hi Nitesh,

Just follow these steps:

  • Add a Client Action to handle your link's On Click event.
  • Add a JavaScript element to the new Client Action.
  • Use the following code for the JavaScript element:
    window.open('<yourURL>', '_system');