DeepLinking in kony Visualizer

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.

How to implement deeplinking functionality in kony visualizer. I want to open native application from SPA mobile web.(when user click on a button in SPA Mobile web, it open native application). Please provide the sample application with configuration document for both android and iOS.

Thanks

Hello,

We have prepared a sample application to meet your requirement. Kindly go through the sample application and steps for your reference.

1). SampleDeeplink:

In the SampleDeeplink sample application, we have given below content to rich text widget.

<a href="testTwo://"> InvokeKonyApp </a>

2). launchAppbrowser:

In the launchAppbrowser sample application, we have given below for DeepLink URL Scheme

Scheme : testTwo

I have built the applications(launchAppbrowser) for native iPhone channel and installed it in iPhone device. Launched "SampleDeeplink" application for SPA iPhone and clicked "InvokeKonyApp" hyperlink, "launchAppbrowser" application has got launched through DeepLink.

Please implement the same logic for button widget and let us know if you need any further support.

Thank you,

I tried using the SampleDeeplink app for the "mailto:" scheme like this:

<a href="mailto://robert.james@jfs.ohio.gov">Mailto Bob </a>

it is not working. Is my syntax correct for mailto: ??

I have also tried kony.application.openUrl() and kony.application.openUrlAsync() and launching a browser with the base URl as my "mailto: ...."

Nothing is working as expected.

@Elizvxeth Poole​ can you please help here. Thanks!

@Fwvnciszek Riley​ ,

Is your requirement to open native email client to send the email?

Have you tried kony.phone.openEmail?

Reference : https://docs.kony.com/konylibrary/visualizer/viz_api_dev_guide/content/phone.htm

Yes -- this was an attempt from someone I was helping. It was using a rich-text-area and containing an HTML construct. I recommended using one of the openUrl variants or openEmail and it is now working using the openEmail.

can anyone help.

i have a pdf that the path for it is /storage/emulated/0/cerr.pdf also i have the rowbyte of the file over my app.

and i need when i click a button on my application to open the pdf app while representing this pdf ??

noting that i don't won't to include a pdfViwer in my application i wont to use the apps installed on any Mobile also same as Docx i need when i press a button to navigate to the Docx app while representing the document

Hi,

Please find launchappbrowser.zip for your reference.

Thank you,

Hi,

Do you have any sample app for android platform.

Please help if you have anything like how to create Scheme URL for deep linking.

Hi,

We have similar requirement in our app. On clicking a link in email should open our app if it is installed. So i tried with the 2 sample apps which you have shared in this thread.

In SampleDeeplink app onclicking a richtext you have given href tag testTwo://.

In launchAppBrowser app under project properties you have given scheme as testTwo.

I installed both apps in samsung galaxy s9 plus. But onclick its not invoking the other app. Any idea?

Thanks,

FYI @Advm Avewy​ @Bewnvdette Hvwdvcwe​

Hi, Please respond we are also looking for an answer on this question, we would like to navigate from a url into the app to a certain page. I have been reading the docs for the whole weekend but no luck, please assist ? maybe a sample project etc ?

Hi All,

We have similar requirement in our app. On clicking a link in email should open our app if it is installed. Please provide the sample application with configuration document for both android and iOS.

Thanks,

Hi All,

Can anyone provide an update on this as we have a similar requirement in our app.On clicking a link in email should open our app if it is installed. Please provide the sample application with configuration document for both android and iOS.

Thanks

Hi Everyone, have you looked at this article from one of our experts: Using Deeplinks for App-to-App Communication

https://basecamp.temenos.com/s/article-detail/a046A00000DkafaQAB/using-deeplinks-for-apptoapp-communication

Use below procedure to handle custom URL schemes from with in webviews,

1) You need to override the handleRequest callback on web view

https://docs.kony.com/konyonpremises/Subsystems/Widget_User_Guide/Content/Browser_Events.htm#handleRe

2) If the desired schema matches in the originalURL , extract appropriate queryParams from the arguments of callback

3) Use corresponding native mechanisms to launch other intended apps.

4) Return true from this callback in JS to indicate to webview that you have handled and webview need not take any action on this url.

To elaborate point 3 above you have the following choices.

1) You can use kony API's like below to launch external app's

-> kony.phone.openEmail

-> kony.application.openURLAsync (this launch external browser which can the redirect to open apps like maps to launch driving directions , launch another deeplinked app based on the URL )

2) Write NFI /FFI code if the desired functionality API is not available with kony

For example lets assume openEmail API is not available you can write NFI / FFI code as depicted below to launch the email in corresponding native code .

Below UR depicts launching email using Android intent.

https://stackoverflow.com/questions/18874282/webview-email-link-mailto