Sharing a sample app for openUrl experimentation

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Posting a simple app with a variety of opening URLs as call to action from within the mobile App. My task was to get the scheme "mailto:" to work for sending email feedback to the support center. I used the openEmail(), openURL(), openURLAsync() and browser with a base URL of "mailto:"

It is not pretty, but it is functional and quick to turn around experiments. All of the actions are in the form's hyperlink-buttons and the button that navigates to the browser form.

All work as expected except the browser did not work.

You might need to configure an email account in your device/emulator.

Tested on Android -- although, my target was IOS -- oh well, it should work the same.

@Fwvnciszek Riley​

In the given sample application to the button widgets you have define the actions, for the last button Browser click you are navigating to the next form which has browser widget. But to the browser widget you haven't given any data/URL. Please let us know what is expected from the browser widget.

Not a problem -- i am done with that experimentation. I put a "baseurl" in the widget (apparently only for iPhone). I was expecting it to open the same as putting "mailto:robert.james@jfs.oio.gov" in the [desktop] browser.

Hi @Fwvnciszek Riley​

We cannot load the mailto URL to the browser widget. When we pass the mailto URL it will treated it as invalid URL and it won't load it. We have tried the same in the native application observed the same.

In the apple developer forum they are recommending that check the URL scheme, if the scheme is mailto then is openURL to open the mailto URL. Please check the below link

https://forums.developer.apple.com/thread/90374

https://stackoverflow.com/questions/26501172/launching-phone-email-map-links-in-wkwebview

NP. Yet it works in a desktop browser. The URL is not invalid. As I stated at the beginning, this is an app to experiment with and the negative test case is a useful test case in an experiment :)

@Fwvnciszek Riley​

Did my response help you? If yes, make sure you click [Select as Best] under the response to close the post.