|
| 1 | +# Element X Android deeplink |
| 2 | + |
| 3 | +<!--- TOC --> |
| 4 | + |
| 5 | +* [Introduction](#introduction) |
| 6 | + * [Asset Links](#asset-links) |
| 7 | + * [Supported links](#supported-links) |
| 8 | +* [Developer tools](#developer-tools) |
| 9 | + |
| 10 | +<!--- END --> |
| 11 | + |
| 12 | + |
| 13 | +## Introduction |
| 14 | + |
| 15 | +Element X Android supports deep linking to specific screens in the application. This document explains how to use deep links in Element X Android. |
| 16 | + |
| 17 | +### Asset Links |
| 18 | + |
| 19 | +The asset links file is available at https://element.io/.well-known/assetlinks.json |
| 20 | + |
| 21 | +### Supported links |
| 22 | + |
| 23 | +Element Call link: |
| 24 | +> https://call.element.io/Example |
| 25 | +
|
| 26 | +Link to a user: |
| 27 | +> https://app.element.io/#/user/@alice:matrix.org |
| 28 | +
|
| 29 | +Link to a room by id or alias: |
| 30 | +> https://app.element.io/#/room/!roomid:matrix.org |
| 31 | +> https://app.element.io/#/room/#element-x-android:matrix.org |
| 32 | +
|
| 33 | +Link to a room with a specific event: |
| 34 | +> https://app.element.io/#/room/!roomid:matrix.org/$eventid |
| 35 | +
|
| 36 | +Note that it will also work with other domain such as: |
| 37 | +> https://mobile.element.io |
| 38 | +> https://develop.element.io |
| 39 | +> https://staging.element.io |
| 40 | +
|
| 41 | +## Developer tools |
| 42 | + |
| 43 | +Using an Android 12 or higher emulator |
| 44 | + |
| 45 | +Ensure links verification is enabled |
| 46 | +```bash |
| 47 | +adb shell am compat enable 175408749 io.element.android.x.debug |
| 48 | +``` |
| 49 | + |
| 50 | +Reset link verifications for the given package id |
| 51 | +```bash |
| 52 | +adb shell pm set-app-links --package io.element.android.x.debug 0 all |
| 53 | +``` |
| 54 | + |
| 55 | +Force the package id links to be verified |
| 56 | +```bash |
| 57 | +adb shell pm verify-app-links --re-verify io.element.android.x.debug |
| 58 | +``` |
| 59 | + |
| 60 | +Print the link verification of the package id |
| 61 | +```bash |
| 62 | +adb shell pm get-app-links io.element.android.x.debug |
| 63 | +``` |
| 64 | + |
| 65 | +``` |
| 66 | + io.element.android.x.debug: |
| 67 | + ID: e2ece472-c266-4bf0-829c-be79959a6270 |
| 68 | + Signatures: [B0:B0:51:DC:56:5C:81:2F:E1:7F:6F:3E:94:5B:4D:79:04:71:23:AB:0D:A6:12:86:76:9E:B2:94:91:97:13:0E] |
| 69 | + Domain verification state: |
| 70 | + *.element.io: 1024 |
| 71 | +``` |
0 commit comments