Android Deep Linking
Set up Android App Links to open your Android app directly from LinkSense dynamic links.
Overview
Android App Links allow your dynamic links to open directly in your Android app. When a user with your app installed taps a LinkSense dynamic link, Android verifies the Digital Asset Links file and opens the link in your app instead of the browser.
LinkSense automatically hosts the Digital Asset Links file for your project subdomain. You need to register your app and configure your Android manifest.
Prerequisites
Before setting up Android deep linking, make sure you have:
- Your app's package name (e.g.,
com.example.myapp) - Your app's SHA-256 signing certificate fingerprint
- A Google Play Developer account (if publishing to the Play Store)
- A LinkSense project with a subdomain
Registering Your Android App
From your project settings in the LinkSense dashboard, navigate to the Android Apps section and click "Add Android App". Provide the following information:
- App Name — A friendly name for the app
- Package Name — Your app's package name
- SHA-256 Fingerprint — Your signing certificate fingerprint
- Play Store Link — Optional link to the Play Store listing (for fallback redirects)
Finding your SHA-256 fingerprint
Production apps
Go to the Google Play Console → Setup → App signing to find the SHA-256 fingerprint for your upload and app signing keys. See Google's documentation for details.
Debug builds
Run this command in your project directory to get the debug fingerprint:
keytool -list -v -keystore your-keystore.jks
Digital Asset Links
LinkSense automatically generates and hosts the Digital Asset Links file at the well-known path for your project subdomain:
https://your-subdomain.linksense.net/.well-known/assetlinks.jsonThe generated file follows this structure:
[
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.example.myapp",
"sha256_cert_fingerprints": [
"AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99:..."
]
}
}
]Automatic updates
The assetlinks.json file is automatically updated when you add or remove Android apps from your project. No manual file hosting is required.
Configuring Your Android App
Add an intent filter with android:autoVerify="true" to your app's AndroidManifest.xml:
<activity android:name=".MainActivity">
<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="your-subdomain.linksense.net" />
</intent-filter>
</activity>Replace your-subdomain with your actual LinkSense project subdomain. The autoVerify attribute tells Android to verify the Digital Asset Links file when the app is installed.
Testing App Links
To test that App Links are working correctly:
- Install your app on a physical device or emulator
- Verify the Digital Asset Links file using Google's Statement List Generator tool
- Open a messaging app and paste your dynamic link URL
- Tap the link — it should open directly in your app
You can also verify App Links using ADB:
adb shell am start -a android.intent.action.VIEW -d https://your-subdomain.linksense.net/your-pathVerification timing
Android verifies App Links when the app is installed or updated. If you change your Digital Asset Links configuration, users may need to reinstall the app or wait for the system to re-verify.