Add open.lbry.com deep-links #962
No reviewers
Labels
No labels
android: closed alpha
android: open beta
app-parity
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
creator
Epic
good first issue
hacktoberfest
help wanted
icebox
Invalid
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
product review
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-android#962
Loading…
Reference in a new issue
No description provided.
Delete branch "deeplink"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR Checklist
Please check all that apply to this PR using "x":
PR Type
What kind of change does this PR introduce?
Fixes
Issue Number: #957
What is the current behavior?
LBRY Android is not offered when user clicks on open.lbry.com links.
What is the new behavior?
LBRY Android will show on lists of apps which can manage open.lbry.com links
Other information
It adds itself for intents with an '
https://
" protocol schema and an 'open.lbry.com
' host on AndroidManifest.When system observes an intent from user to visit any link of the form
https://open.lbry.com:
, it will show a dialog with a list of all apps registered for that intent. When user selects LBRY app, the system will open it and it will recieve the link, which this PR will transform into something like an lbry:// intent, instead of managing it separatelly.It modifies regex parts as following:
It shifts components for matched strings as a new host component has been added.
In case host part is the expected 'open.lbry.com', it will change separators from ':' to '#'. This is also commented on code.
Note for merger
Maybe this PR could be delayed for next 0.16 release or even a future one as it adds a new feature and not a bug-fix. Until then, I will be attending any change requested by the reviewer.
Sweet!! 😁
This is awesome, thanks so much! We'll get it reviewed soon. Can we show you some appreciation for the contribution?
Not at this time, but thank you anyway.
Hey, this is great, thanks! I was thinking of also doing this with lbry.tv links, but I felt it may annoy some people who just want to be able to quickly access the web-only experience.
With deep links, user has always the choice about which app to use. If lbry.tv was added, user would also be offered a dialog box and then it could select a web browser or LBRY. But, yes, I also think that lbry.tv could better be left to the web browser experience. At the end, creators will choose one or another, and I think they will be choosing the lbry.tv one.
Yea,I think we should support lbry.tv as well. Many people share those links and would still expect to open in app if available.