Add URL Link with in the Application

How would I go about adding a URL link to my app so a end user can select it and jump to that in a web browser.

Hi Robert

The easiest way to open an external link is using the return external.uri() syntax from the App JS. Below is a basic example.

function openLink() {
    var url = "https://en.wikipedia.org/wiki/Main_Page"
    return external.uri(url);
}

This can be easily triggered from a button, basic example below.

<button label="Open link" on-press="openLink" icon="fa-link" validate="false" style="solid" />

Hi, is anyone experiencing an issue with this in runtime 4.81.0 on iOS 15.0.1

I can confirm that the javascript function is being triggered, but no link can be opened.

Hi @reggiepret

That seems to be a regression with v21.9.1 and will be an issue on older iOS versions too with the latest container. We are currently working on a fix and will deploy the updates as soon as possible. The version number of the container with the fix will be 21.9.2.

Hi @machiel,

Thanks for the update, do we think it will be released today, or sometime this week?

Thanks!

Hi @reggiepret

We’re doing everything we can to release today still, but it is best to plan for the release to become live within the next day or two. There is a bit of a process attached to an iOS release that we don’t have with other platforms that might introduce the delays.

But yes, like I said, we’re doing everything we can to get it out today if it is at all possible.

Thanks for bearing with us!

Hi @reggiepret,

21.9.2 has been released for custom container builds (so they should be rebuilding now on our appinstall.xyz service). The JourneyApps branded container is also in the process of being released to the app store - there are just some regular approval processes that need to be finalized by Apple.

Let us know on support@journeyapps.com if you see any issues with the latest version!

Thanks @machiel, I have just updated and it is working again. Thank you for the incredibly quick turn around. We have a feature going live tomorrow that used this functionality, so timing is great!

1 Like

Hi @machiel
Is there a similar bug in the Android container now?
Thanks!

Hi @reggiepret,

I have not been able to reproduce that issue on Android using 21.9.2. and 4.83.0 stable. If you can reproduce an issue like that it would be best to contact our support desk so that we can take a look at it through there. Please give us as much relevant info as possible :smiley:

Thanks!