#[SOLVED] Forgot Password Flutter using Deep Links

25 messages · Page 1 of 1 (latest)

raw kestrel
#

The flutter app opens when using the encoded url

adb shell am start -a android.intent.action.VIEW
-c android.intent.category.BROWSABLE
-d "https://xxx.xxxx.xxx/forgot_password?userId%3Ddsad%26secret%3Ddsaddsadsadsa%26expire%3Ddsadadsa"
com.xx.xxxxxxx.xxxxx

But not witout it

adb shell am start -a android.intent.action.VIEW
-d "https://xxx.xxxxx.xxxx/forgot_password?userId=dsad&secret=dsaddsadsadsa&expire=dsadadsa" \
com.xxx.xxxx.xxx


Hello xxxxx xxxx,

Follow this link to reset your xxxxxxx password.

https://xxxx.xxxx.xxxx?userId=65f1d741cc7e6b05e95d&secret=xxxxx&expire=xxxxxx

If you didnt ask to reset your password, you can ignore this message.

Thanks,
xxxxx team

This is the email template we get , the url is not encoded , so the app does not open , redirected to browser

#
adb shell am start -a android.intent.action.VIEW \
    -c android.intent.category.BROWSABLE \
    -d "https://xxx.xx.xx/forgot_password?userId=shibakar\&secret=thisisatest\&expire=orange" \
    com.me.xx.xx
#

this also works

wheat vine
keen wave
#

@raw kestrel you should have assetlinks.json file in your website, otherwise deep links don't work

raw kestrel
#

I have still no luck asseigned 256 key 🗝️ also the app bundle as well

#

Because of the I can't implement forget password

keen wave
#

@raw kestrel What about the android manifest file, can I check it ?

raw kestrel
#

I am hosting like in flutter web

#
    {
        "relation": [
            "delegate_permission/common.handle_all_urls"
        ],
        "target": {
            "namespace": "xxxxxxx",
            "package_name": "xx.xx.xxxx.xxxx",
            "sha256_cert_fingerprints": [
                "xxxxxxxxxxxx"
            ]
        }
    }
]```
keen wave
#

You should add both "http" and "https" in Manifest file

raw kestrel
#
            android:name=".MainActivity"
            android:exported="true"
            android:launchMode="singleTop"
            android:taskAffinity=""
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
                android:name="io.flutter.embedding.android.NormalTheme"
                android:resource="@style/NormalTheme"
            />
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <meta-data android:name="flutter_deeplinking_enabled" android:value="true" />
            <intent-filter android:autoVerify="true">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="http" />
                <data android:scheme="https" />
                <data android:host="xxx.xxx.xxx" android:pathPrefix="/forgot_password" />

            </intent-filter>
        </activity> ```
keen wave
#

@raw kestrel did you try without pathPrefix?, My app doesn't have any pathPrefix, it opens all the links in the app itself.

raw kestrel
#

tried everything

keen wave
#

@raw kestrel

<meta-data android:name="flutter_deeplinking_enabled" android:value="true" />
            <intent-filter android:autoVerify="true">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="http" android:host="traditionalwears.in" />
                <data android:scheme="https" />
            </intent-filter>

This is my code snippet for deeplink, it works well, no issues

raw kestrel
#

thinks trying

keen wave
#

@raw kestrel Is your app available on Play Store ??

raw kestrel
#

@keen wave no

keen wave
#

@raw kestrel ok

wheat vine
keen wave
raw kestrel
#

@wheat vine make it as DONE