mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-07-26 05:51:18 +02:00
d988b2c9d3
When a download hit a verification challenge while the app was in the background, the browser launch was attempted immediately (blocked or silently dropped by the OS) and the 5-minute grant timeout kept running, so the item failed without the user ever seeing the CAPTCHA. Wait for AppLifecycleState.resumed before opening the challenge and before starting the grant timeout, and post a local notification asking the user to return to the app. If the process is killed while waiting, the persisted queue already restores the item as queued on next launch.