Add deep link support in app

fine i thought it will be nice

....
OK it took me some time to understand what you were telling so I am posting my answer here in case anyther beginner is trying to figure it out.

Under "Control" blocks is the option "get start value" which will let you then manipulate it.
reference docs

I was actually searching in the "screen1" specific blocks or at the app level and not in the control panel at all :innocent:
Thanks for the extension and help here!
Toto

2 Likes

I'm having trouble with this. I am using an aix from

with the scheme appi-installer and the host go in the hopes that appi-installer://go/install?params will trigger my app. I have confirmed that the intent filter is in the built APK manifest but the app is not being offered as an option when I open appi-installer links. I can post an aia/apk if that would help. I also tried editing component_build_info.json and component_build_infos.json to remove the host and that had no affect.

Hi @easrng

How are you opening those links?

I have tried clicking them in Bromite (Chrome), Fennec (Firefox), and opening them with an app called Automate. None of them work. Automate shows me the underlying error is

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=appi-installer://go/install?params flg=0x10040000 }

which doesn't make sense, because the manifest in the built apk includes what seem to be the proper tags.

      <activity android:name="com.sunny.DeepLink.DeepLink$DeepActivity">
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:scheme="appi-install"/>
            </intent-filter>
        </activity>

Wait, the scheme in the aix I built is appi-install, not appi-installer :woman_facepalming:

It should work now.

hey thanks for this amazing extension..

I have a question first if I use "https" then it just opens the browser and doesn't prompt to use the app -firefox gives the option after launch in menu but not chrome-
and if I use something else then same thing and if you send as a message in telegram for example it doesn't recognize it as a link at all :pensive:

my device is android 12

On Android 12 and higher, clicking a web link (that is not an Android App Link) always shows content in a web browser
Handling Android App Links  |  Android Developers

what can I do?
*does making the app indexing in play console do it?

You can register for an uri instead, such as myapp://Screen1. Here myapp is scheme and Screen1 is host. It should not be possible for other apps to prompt then.

I read on the thing the support for it stopped on android 12 you have to add exactly one line of code to the manifest.xml file for it to work I think you have to add it into the class you're using for the extension to work
I don't think I can edit the manifest on my own right?

Take a look at the link in my reply to see it

Sure, I'll do it.
But there are other ways too, in case it is urgent for you.

Actually you can.

thank you for keeping your extensions up-to date..
I'm not doing anything urgent but I'll try the solutions you provided for sport

looking forward for the update :slight_smile:

thank you so much for the help..
I did it and hopefully everything is working correctly only the second step needs some time

2 Add verification for your deep links: Configure your app to request verification of app links. Then, publish a Digital Asset Links JSON file on your websites to verify ownership through Google Search Console. Learn more in Verify App Links.

Yo it didn't actually work πŸ₯²

I did all the steps that has anything to do with the domain and indexing and verification but I don't think <autoverify=true> is working when I just edit the file as you mentioned.

I didn't try editing the manifest file after compiling the app yet I thought I could do it this way but I guess I have to now

I am a little confused here.
You have to compile apk in ai2 , then decompile that with appropriate tools , make changes and then recompile the sources with the tool.

1 Like

I just did and uploaded it to Google play (it has to be downloaded from store to work) it's in review I'll update you if it worked or not when it's done

It worked :heart_eyes:

2 Likes

@vknow360 Does this extension also supports Deferred deep links?

No, it doesn't support deferred deep links.

not working for me