mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-11-13 17:37:03 +01:00
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:
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 }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user