Bug 423859

Summary: Share Bitcoin Lightning invoice link and open with bitcoin wallet instead of browser
Product: [Applications] kdeconnect Reporter: Leonardo18 <leodocosta>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED MOVED    
Severity: normal CC: andrew.g.r.holmes, nicolas.fella
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Leonardo18 2020-07-04 03:57:22 UTC
SUMMARY

I would like to share a Bitcoin lightning invoice link and open on phone with bitcoin wallet instead of browser.


STEPS TO REPRODUCE

1. Click with right button on a Bitcoin Lightning Invoice on desktop and I see the option on Kde Connect to Open in Browser or Send SMS. 

Obs. A Bitcoin Lightning Invoice link is like this
 (lightning:lntb15u1p00l7zrpp5juq584qna907c57haas42dql84n35fj7h4duyf4a9feejspm4tmsdq4xysyymr0vd4kzcmrd9hx7cqp2xqrrss9qy9qsqsp5gnyp08t4kgeqcu4kc02nml3mf6w5rsa5s9evzc26xut23te8v33sv0xn5fc6xv3n8rf3ylxvfgp90wfrag4urj2ep0l6tqxd0hju0wwnkktyacycmj3pntpcac07kle58e9zx3gmuwrq8x4pyldfxu9082sq5hrzmn) 

OBSERVED RESULT

Only option to Open in Browser or Send SMS.

EXPECTED RESULT

Have an option to Open with Bitcoin Walllet.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nicolas Fella 2020-07-04 15:06:12 UTC
This would work out of the box if the wallet application registered itself as an handler for this type of link
Comment 2 Leonardo18 2020-07-04 16:26:36 UTC
The problem here is that when I click to open in browser instead of just paste the link lightning:lntb15u...., paste the link as https://lightning:lntb15u...
So because this, do not open the bitcoin wallet but instead open the Browser.
Comment 3 Leonardo18 2020-07-04 16:44:06 UTC
In my opinion, should be Open on Phone instead of Open in Browser. So who should decide how handle the link is the Phone, this way the Android will open the link on respective app.
Comment 4 Leonardo18 2020-07-04 18:03:43 UTC
I opened this issue: https://github.com/andyholmes/gnome-shell-extension-gsconnect/issues/890
Comment 5 Nicolas Fella 2020-07-04 19:02:36 UTC
So you are using GSConnect?
Comment 6 Nicolas Fella 2020-07-04 19:06:42 UTC
I don't see kdeconnect-android doing anything wrong, so it's either:
1) The desktop side prepends https:// to the URL before sending
2) The receiving Android app is not set up properly
Comment 7 Andy Holmes 2020-07-04 22:26:00 UTC
Yep, this is our fault in GSConnect afterall. This can be closed.