-
Notifications
You must be signed in to change notification settings - Fork 63
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
Update openLink documentation #92
Open
tokou
wants to merge
1
commit into
mobile-dev-inc:main
Choose a base branch
from
tokou:openlink-update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -8,9 +8,15 @@ To open a link on a device (i.e. a deep link): | |||||
|
||||||
### Auto verification of your Android Apps  | ||||||
|
||||||
If your app shows a disambiguation dialog along with other apps that can open the web link: | ||||||
On Android, applications can declare intent filters for handling the opening of some links from specific domains. | ||||||
|
||||||
  | ||||||
If the app had implemented [App Links](https://developer.android.com/training/app-links#android-app-links) in order to verify the association with these domains by hosting a Digital Asset Links JSON file, the link would open the app automatically. | ||||||
|
||||||
If not, the behavior would depend on the Android version of the device. | ||||||
|
||||||
Starting from Android 12, such apps needs for the user to manually verify the association of the app with the domains through the "Open by default" settings menu. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
Before Android 12, the system would show a disambiguation menu (called "Chooser") for the user to choose which app to use. | ||||||
|
||||||
You can auto-verify the web link to be opened by your app with `autoVerify` attribute: | ||||||
|
||||||
|
@@ -19,15 +25,32 @@ You can auto-verify the web link to be opened by your app with `autoVerify` attr | |||||
link: https://example.com | ||||||
autoVerify: true | ||||||
``` | ||||||
Starting from Android 12, setting `autoVerify` to true will automatically enable the verification of the domain of the link as if the user manually enabled it through the "Open by default" settings menu. | ||||||
|
||||||
| Chooser | Choice | | ||||||
|-------------------------------------------------------------|--------------------------------------------------------------| | ||||||
| <img src="../../.gitbook/assets/chooser1.png" width="200"/> | <img src="../../.gitbook/assets/chooser2.png" width="200"/> | | ||||||
|
||||||
Before Android 12, setting `autoVerify` to true will automatically pick the app in the Chooser. | ||||||
|
||||||
|
||||||
| Before verification | Supported links | After verification | | ||||||
|----------------------------------------------------------|----------------------------------------------------------|----------------------------------------------------------| | ||||||
| <img src="../../.gitbook/assets/open1.png" width="200"/> | <img src="../../.gitbook/assets/open2.png" width="200"/> | <img src="../../.gitbook/assets/open3.png" width="200"/> | | ||||||
|
||||||
Beyond Android version 12, web links are by default opened in the web browser. It is possible for maestro to also auto-accept agreements of Google chrome if shown with the same `autoVerify` flag. | ||||||
|
||||||
### Opening web links in the browser for Android | ||||||
|
||||||
It is possible with maestro to force open web links with the web browser: | ||||||
It is possible with maestro to force open web links with the web browser (Chrome): | ||||||
|
||||||
```yaml | ||||||
- openLink: | ||||||
link: https://example.com | ||||||
browser: true | ||||||
``` | ||||||
|
||||||
In that case, setting `autoVerify` to true would skip the various Chrome onboarding screens. | ||||||
|
||||||
| Accept | Sign in | Sync | Notifications | Ad privacy | Other ad privacy | | ||||||
|-----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|-------------------------------------------------------------------------------------------------|------------------------------------------------------------------|----------------------------------------------------|--------------------------------------------------| | ||||||
|  |  |  |  |  |  | | ||||||
Comment on lines
+53
to
+56
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure that these demonstrations are necessary. WDYT? |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.