avioli / uni_links

Flutter plugin for accepting incoming links.
BSD 2-Clause "Simplified" License
563 stars 303 forks source link

Deeplink not working #156

Open chirastefan opened 2 years ago

chirastefan commented 2 years ago

I'm using [https scheme, http scheme] and I am testing on my [Galaxy S7 edge], which is running [Android 8.0.0].

I'm using Apwrite(running locally with docker on my.ip.address) for user auth and other stuff, but the deep link doesn't seem to work. For user email verification, Appwrite sends an email with a decorated URL for the activation of the account. For example: my.ip.address://account/verification?userId=testUserId?secret=testSecret. Tapping on that doesn't open the application.

Config:

<intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>           
<intent-filter android:autoVerify="true" tools:targetApi="m">
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <!--                <data android:scheme="https"/>-->
                <data
                        android:scheme="http"
                        android:host="my.ip.address"
                        android:pathPrefix="/v1/account/verification"
                />
  </intent-filter>
jjsebastianfuertes commented 2 years ago

Hi, in this case the scheme must be my.ip.address