How to add deeplink support in your application?

Does your deeplink extension work? I used your website to make an extension but as soon as I select the app from menu it crashes. I am using the your webview extension (latest stable version) as well but I have removed the helper extension and also disabled deeplinks in the webview.

It does not work in Kodular.

1 Like

What’s wrong in my DeepLink, Does not build.

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.content.Intent;
import android.content.pm.PackageManager;
import com.google.appinventor.components.annotations.DesignerComponent;
import com.google.appinventor.components.annotations.SimpleObject;
import com.google.appinventor.components.common.ComponentCategory;
import com.google.appinventor.components.runtime.AndroidNonvisibleComponent;
import com.google.appinventor.components.runtime.Component;
import com.google.appinventor.components.runtime.ComponentContainer;
import com.google.appinventor.components.annotations.androidmanifest.*;
import com.google.appinventor.components.annotations.UsesActivities;

@DesignerComponent(
version=1,
description=“Add deeplink in your application”,
category=ComponentCategory.EXTENSION,
nonVisible = true,
iconName=""
)

@UsesActivities(
activities = {@ActivityElement(intentFilters = {@IntentFilterElement(actionElements = {@ActionElement(name = “android.intent.action.VIEW”)} ,
categoryElements = {@CategoryElement(name = “android.intent.category.DEFAULT”) ,
@CategoryElement(name = “android.intent.category.BROWSABLE”)},
dataElements = {@DataElement(scheme = “appinventor”,host=“DeepLink”),
@DataElement(scheme = “https”, host=“www.test.com”)})} ,
name=“com.appybuilder.elisha.delight5.DeepLink.DeepLink$DeepActivity”)}

)

@SimpleObject(external=true)
public final class DeepLink extends AndroidNonvisibleComponent{
public DeepLink(ComponentContainer container) {
super(container.$form());
}
public static class DeepActivity extends Activity{
@Override
protected void onCreate(Bundle saved){
super.onCreate(saved);
if (getIntent() != null){
Uri uri = getIntent().getData();
if (uri != null){
PackageManager packageManager = getPackageManager();
Intent intent = packageManager.getLaunchIntentForPackage(getPackageName());
intent.putExtra(“APP_INVENTOR_START”,’"’+ uri.toString() +’"’);
startActivity(intent);
finish();
}
}
}
}
}

I just tried not but not working

Yeah, I have withdrawn my post.

Hey I’m using your deep-link extension and I got no problem with that

Can you send me your aix

Website has been fixed.

Hi guys I want to add deeplink in my app so I tried
Sunny Deep link extension it failed then I tried app helper extension but it failed How to add deeplink support in your application?

I tried with this extension but here is the error

is it works in html files?

I can help you in creating deeplink for your app as deephost. Anyone who wants a deep link extension for their app with their desired website link can contact me.

Hello !

I have used the site : http://deep-link.000webhostapp.com/
And I confirm this one work fine. I have integrate this extension and my application is proposed when I use the valid scheme. :ok_hand: :+1:

Any One Know How to open any URL in the world, Not the set URL in the app.

1 Like

The extension works well but it opens Screen1. I want to open Screen3 so the app opens Screen3 if start value of Screen1 is not empty. There is a problem, if Screen2 is opened instead of Screen1, the app will not get the start value and will not open Screen3.
Could you please help me to open Screen3 directly?

Simply that’s not possible in Kodular.
If you have an AI2 project then you can get a working aix from here:
https://sunnythedeveloper.xyz/customwebview/

Thanks for your response. But why can’t I use it in Kodular although Kodular is depending on app inventor API?

I want to use dynamic links in a project I already built it using Kodular and it is not easy not rebuild it again. If there is another solution please tell me. Thanks

There is another problem. The start value of the deep link is always active so when the app go to background then become active again it goes to the page related to this link.

Hello I want one Help
Can you pls explain I have Multiple category Like Deep host Aia and Aix Link
I wan to pass example.com/category/index_number Can you pls explain for me how to do this

please added this line 
<intent-filter android:autoVerify="true">
on this website
```http://deep-link.000webhostapp.com/
1 Like