feat(ios): notify when a show gains episodes

A BGProcessingTask runs the same crawl_for_news no sooner than every six
hours, when iOS chooses. A processing task rather than an app refresh,
since a crawl of a large share does not fit in thirty seconds.
This commit is contained in:
nvrl committed 2026-10-13 21:26:15 +02:00
1 parent 4b9cbd26bc
commit d4e9628199
6 files changed
+114 -1

No files matched your search

@@ -33,6 +33,13 @@ struct ProtonStreamApp: App {
}
final class AppDelegate: NSObject, UIApplicationDelegate {
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
NewEpisodes.register()
NewEpisodes.schedule()
NewEpisodes.requestPermission()
return true
}
func application(_: UIApplication, supportedInterfaceOrientationsFor _: UIWindow?) -> UIInterfaceOrientationMask {
MainActor.assumeIsolated { OrientationLock.mask }
}