MalformedURLException on Google-managed calendar for RIOT summit
chrysn opened this issue · 3 comments
The RIOT summit is coming up, and its calendar managed at https://calendar.google.com/calendar/ical/q8kbk375j3oh1ei3pt3s8g22hs%40group.calendar.google.com/public/basic.ics looks like it'd be suitable for use with giggity.
When attempting to load said URI (or its http version instead of https) by QR code, I get:
Loading schedule data...
Network I/O Problem: java.net.MalformedURLException: no protocol: https://calendar.google.com/calendar/ical/q8kbk375j3oh1ei3pt3s8g22hs%40group.calendar.google.com/public/basic.ics
Accessing the same resource per curl
via termux (or via Firefox, which offers it for download) works, so it shouldn't be a network problem.
How did you generate the QR, and how did you scan it? (The "Scan QR" button won't work for most anymore but maybe you still have a suitable app installed?)
My bad, it was the QR generator -- didn't think that it could be the cause. Copy-pasting the link into the form worked fine. (The only workflow I tested before was to generate the code with qtqr and scan it with the in-app Add / Scan QR option, with the app installed from FDroid).
Then this is probably a duplicate of the but you're referencing, which I just fail to find right now.
Oh, there's no other bug for Scan QR not working, that's simply the evolution of Android. If an app wants to offer integrated QR scanning, it now has to be linked in (with camera permissions and all), and that'd be insane for niche functionality. If you do want to enter a schedule into Giggity using a QR you can use the ggt.gaa.st URL scheme (https://github.com/Wilm0r/giggity/blob/master/tools/ggt.sh for an example) and just use any QR scanner (Camera app usually has one) to open it.
Downside then of course is that it's Giggity-specific. The ggt.gaa.st name gets registered as a URL scheme on the phone, similar to how other apps do this. (Though of course I believe any compatible app could register that URL scheme instead.)