Open open.lbry.com links on Android app #957
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#957
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
The Issue
Steps to reproduce
1a. Browsing -writing- directly through the navigation bar to a open.lbry.com link will redirect you to lbry.tv
Expected behaviour
LBRY installed app should show the content or allow itself to be chosen at least
Actual behaviour
Content is always shown on lbry.tv
System Configuration
Anything Else
Android app is currently being opened for lbry:// links. This bug report is about opening those links which could be shared on the outside world.
I am already adding code to add this new-feature. A PR will be posted when ready. I am oopening this report so there could be a place where the discussion could be held in case this is not a desirable feature.
Screenshots
Internal Use
Acceptance Criteria
Definition of Done
Thanks for filing! This code will most likely have to reside on the lbry-desktop repo. I'm not sure if there's a good way to detect if the app is installed..for desktop, we check if they have a desktop installation for the user - but this won't work if you are not signed into lbry.tv. Looking forward to seeing what you think.
LBRY Desktop is run on desktop -or laptop- devices. LBRY Android is executed on devices running Android operating system. Unless there is any shared source code between both of them, the change needed for this to work must be on lbry-android.
Currently LBRY Android is able to show content with the "lbry://" protocol handler. The code I have just been able to test on my device adds a filter for "https://open.lbry.com/". It works, also for unregistered users. Android operaring system allows it; apps need to register the protocol and the host and any clicked link conforming to that schema can be opened by LBRY Android.
People are still able to choose which app is going to open that specific link. They can still go to that link, which will redirect them to lbry.tv and they can even set that setting as the default one for those links. All of that at the operating system level.
Those are my thoughts, @tzarebczan.
Fantastic idea @kekkyojin!
This comment is to add a link for testing
Link to test
I will be adding some tests -both unit and instrumentation type- in a future PR.
that's weird.
when I'm following open.lbry.com link it's opening in the browser.
but for all my friends it's opening a native app
It is possible you configured your browser to always open that kind of links. To check it, search your browser on Settings/Apps and Clear Defaults. Then test it again.
If it doesn't work, provide the LBRY version you are using and the Android version on your device on a new comment, please @e4drcf
@kekkyojin
some man from telegram writes:
App version 0.15.16,
Android version 9.
To be clear. Whether a person clicks an open.lbry link or just a lbry.rv link it should by default play in the lbry app if the user has it installed on their phone, like YouTube.
and my comment:
App version: 0.15.12
Android version 9
Is that person also having the problem? Has it also tried to restore defaults on its browser app?
I "softly" disagree on it. There are two ways an app can tell the system it desires to open certain kind of links. The one YouTube could be using is the one which will force user to use their app. ´LBRY Android users could choose to always open those kinds with the app, and then it will never be asked again, until the app is uninstalled or defaults are cleared.
I am not in charge of the app and I am neither the person making decissions on how the app should behave, but when I wrote this code I thought it would be better to let users choosing what to do instead of forcing them into opening those links with LBRY Android app.
This feature was added on LBRY Android 0.15.14. If you are using 0.15.12, then LBRY will never be offered to open those links, as code to manage them was not yet created.
yes, we both had this issue, now for me it works fine. I've suggested to change settings to this guy from telegram.
Thank you 👍