Email link not opening in Android app

Created by Stephen Reilly, Modified on Tue, 5 May at 5:01 PM by Stephen Reilly

Issue: The user clicks a link for registration or recovery and it doesn't open in the app.


Probable Cause: It's worth downloading a fresh copy of the app on the type of phone the user is having the issue with (iOS/Android). If it is repeatable, it is most likely an underlying issue with the Deep Link system. Check with both device types. 


Escalation Route: Software Development


Resolution: Reference: Capacitor Deep-links 


Using Capacitor/app plugin make sure the necessary intent exists in the activity section of AndroidManifest (android/app/src/main/AndroidManifest.xml) 


<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="https" android:host="app.coroflo.com" android:pathPrefix="/applink" /> 
</intent-filter>


Add sha256 fingerprint for debug build to .wellknown/assetlinks.json. Also make sure the assetslink static file is being served by express and is accessible without auth token. Ensure the Java environment variable is set in the path so the keystore command can be run. keytool -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore -storepass android -keypass android ("android" is the default pwd for the debug key) on a windows system use: 


keytool -list -v -alias androiddebugkey -keystore "%USERPROFILE%\.android\debug.keystore" -storepass android -keypass android


Verify deeplink association with : adb shell pm get-app-links com.coroflo.companion Check assetlinks file: 


curl -X GET https://app.coroflo.com/.well-known/assetlinks.json -H "Content-Type: application/json" [{ "relation": ["delegate_permission/common.handle_all_urls"], "target": { "namespace": "android_app", "package_name": "com.coroflo.companion", "sha256_cert_fingerprints": ["AF:70:33:82:CD:A6:97:F5:90:43:78:55:4F:4C:15:B6:15:A0:93:70:1C:87:73:12:66:58:22:A6:BC:66:56:76", "C1:ED:A8:A7:2F:7F:AA:12:45:5A:F6:A6:6E:E8:48:1D:91:E8:81:31:0D:56:26:49:B0:AE:6C:08:53:64:00:96", "D3:B8:19:2F:C8:AE:8F:FD:FF:A2:73:3E:34:A6:BB:37:DB:F6:16:D1:37:7D:51:7C:79:69:14:FF:8B:C0:7B:42", "3D:43:70:99:14:03:4F:E4:AA:62:A2:8C:8F:35:5F:57:46:B2:0D:85:B0:09:F1:1F:11:7E:E1:07:51:CC:FA:BB", "86:20:28:95:DE:D9:88:27:0A:DB:C9:65:F4:50:E7:49:EA:4D:C1:C1:3C:58:20:D2:2F:C0:E7:82:8E:02:C4:62", "38:F6:84:5C:09:F8:F0:02:1A:B3:FB:06:1D:5B:50:FD:7E:67:5B:4E:D7:A3:44:4D:5A:B2:10:1D:2F:09:57:78"] } }]


Test with Google API: Test Coroflo deep links

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article