TortugaPower / BookPlayer

Player for your DRM-free audiobooks
GNU General Public License v3.0
1.65k stars 197 forks source link

Bug: Cannot create a widget #1066

Open lysanntranvouez opened 10 months ago

lysanntranvouez commented 10 months ago

Environment

Description

I noticed my Home Screen widget was all black suddenly (I assume this happened when the app updated recently). I deleted it and wanted to recreate it, but I cannot find BookPlayer in the list of widgets.

Steps to reproduce the behavior

I've tried restarting the app. Starting to play a book.

I don't want to do things like uninstall the app right now, since I can't easily transfer my books again. So I can't provide reasonable STR. If this issue is only on my end, then I'll give uninstalling etc a go.

(But since the last updates touch widgets, I'm guessing it's not only me?)

GianniCarlo commented 10 months ago

@lysannschlegel thanks for reporting the issue, yeah if the widget was either the last played or the recent books, then it's definitely related. By any chance, could you try turning off and back on the iPhone? I've found that app extensions sometimes enter a bugged state. Also could you verify if you can access the lockscreen widgets?

Thanks again!

lysanntranvouez commented 10 months ago

I couldn't see lock screen widgets either.

Just restarted the phone and that made the widgets available again, both on the Home Screen and on the lock screen. So thanks for your help!

So I suppose that might just be an iOS bug...? If so, feel free to close!

(Now that I think about it, one kind of unusual thing I did recently was change my language on the phone, which causes it to do that "soft" restart. Maaaaybe that could affect things? But, that's a long shot. Just wanted to mention it in case it helps debugging mysterious iOS widget bugs.)

GianniCarlo commented 10 months ago

thanks for the confirmation! yeah app extensions have been weird for a while now, back in the earlier versions of WatchOS, the watch app actually had an app extension where all the logic actually lived (now it's refactored to a single watch app), and every now and then I got a mail support request about the watch app never establishing a link to the iOS app, and just rebooting the device sorted it out, so I figured this could be a similar thing, as the widgets are just another app extension, I'm glad it worked out 😅

I'll leave this open *a bit more for discoverability, as v5.1.1 is on day 3 of the 7 day rollout, let me know if something else comes up