50
Views
4
Comments
NFC TAG - Create deep link for redirect in specific page
Question

hello everyone, I'm trying to read an NFC tag after writing on it, allowing the opening of an app, now however I need, in addition to open the app, also to take me to a specific page, I read on the forum that I can use the deep link plugin that allows me to decide which page of the app to open. Does anyone already have any experience with deep link plugins ? could you show me some examples to take inspiration from ?

2024-12-10 04-40-04
Gitansh Anand

Hi @andrea farinella, Please refer to the below image for a deeplink example.

1. Scheme is the Application Id (you can find it in the distribute tab of mobile applications in OutSystems, the value is different for each environment), which is used to identify the app in the play store or app store; you must already have this value if you are able to open the app through the NFC tag.

2. Application is the name of the module you want to open in the app.

3. The target screen is the one you want to open from the module.

4. Last are the parameters, if your screen has any inputs.

Deeplink is basically a URL.

The screenshot below is input for "SendPushNotificationToUserId" server action in the OneSignal API Ext forge component.

2024-12-10 04-40-04
Gitansh Anand

This is what your deeplink should look like.

Scheme + "://"  + ApplicationName + "/" + TargetScreen + "?" + Parameters[0].Key + "=" + Parameters[0].Value + "&" + Parameters[1].Key + "=" + Parameters[1].Value

for example if your app id (scheme) is "com.myapp" and your application name (module) is "module" and your target screen is "screen" then this is what your deeplink should look like

1. with no input:

com.myapp://module/screen

2. with one input:

com.myapp://module/screen?input=value

3. with two inputs:

com.myapp://module/screen?input1=value1&input2=value2

and so on

Thanks
Gitansh Anand

UserImage.jpg
andrea farinella

hello, thank you very much for your answer. What is the name of the app you are using for deeplink creation ? i want to try to download it on forge.

2024-12-10 04-40-04
Gitansh Anand

Hi @andrea farinella, I am using the OneSignal Plugin and OneSignal API Ext. OneSignal API Ext adds some more features to the OneSignal plugin.

To use this, you will need to create an account on One Signal and Firebase, both have free and paid options.

Thanks
Gitansh Anand

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.