-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing Android 12 url deeplinks #6225
Conversation
Added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, hence I do not see the PR to update element.io website anymore (to see if it's been merged and deployed).
it's been replaced with an OPS ticket (was recommended in the tech internal room) |
…nks.json`) (#1431) Add Android asset links to support app intents (opening `app.element.io` will open the Android app when installed): `/.well-known/assetlinks.json` Fix https://github.com/matrix-org/matrix-ansible-private/issues/5223 which unblocks element-hq/element-android#6225 to solve element-hq/element-android#5748
vector/src/main/AndroidManifest.xml
Outdated
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
|
||
<data android:scheme="https" /> | ||
<data android:host="app.element.io" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, hence I do not see the PR to update element.io website anymore (to see if it's been merged and deployed).
This is now unblocked as I've added https://element.io/.well-known/assetlinks.json via https://github.com/vector-im/element.io-website/pull/96
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the update! will rebase this PR
- urls must be verified in order for deeplinks to be enabled by the system
c7f9126
to
af59f65
Compare
|
<category android:name="android.intent.category.BROWSABLE" /> | ||
|
||
<data android:scheme="https" /> | ||
<data android:host="*.element.io" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
captures all subdomains of element.io
to avoid needing to host a assetlinks.json on every subdomain
Kudos, SonarCloud Quality Gate passed! |
converting back to draft, we'll need to create a list of all the deeplinks we support in order to know which domains to host the assetlinks.json |
Any progress on this? I'd be extremely helpful to send inexperienced users to the app / correct room without telling them they need to approve the custom link schema at the app's settings screen (by doing this it also works on Android 12+) At least the app.element.io scheme should work on Android 12+ |
OK, it's working, let's merge this. |
#8850 Undoes this fix, as mobile.element.io url is now missing |
Draft as this relies on a
element.io
change which is tracked by this Ops request, https://github.com/vector-im/sre-internal/issues/1382 (internal link)Fixes #5748
Type of change
Content
Fixes matrix-org/matrix-ansible-private#5748 Android 12 being ineligible for URL deeplinks
Creates a separate
intent-filter
to enable the requiredautoVerify
on the*.element.io
urlsSee verify site for more details
Motivation and context
To fix missing Android 12 URL deeplink
Screenshots / GIFs
// TODO relies on element.io's assetlinks.json to be updated
Tests
Follow steps in matrix-org/matrix-ansible-private#5748
or to manually check the verification...
Using an Android 12 emulator
Ensure links verification is enabled
Reset link verifications for the given package id
Force the package id links to be verifed
Print the link verification of the package id
Trigger a url
Tested devices