mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-11-03 16:41:26 +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
@@ -16,6 +16,7 @@ file of the same name is the one to change with it.
|
||||
| `ui/*Screen.kt`, `ui/AccountUi.kt`, `ui/LanguagePicker.kt` | `UI/*View.swift`, `UI/AccountUI.swift`, `UI/LanguagePicker.swift` |
|
||||
| `ui/RemoteArtwork.kt`, `ui/theme/*` | `UI/RemoteArtwork.swift`, `UI/Theme/*` |
|
||||
| `download/*` | `Download/*` |
|
||||
| `sync/NewEpisodesWorker.kt` | `App/NewEpisodes.swift` |
|
||||
| `playback/PlayerScreen.kt`, `NativeMpvHost.kt`, `PlaybackService.kt`, `StreamSession.kt` | `Player/PlayerView.swift`, `Player/PlayerHost.swift` |
|
||||
| `cpp/pstr_mpv.cpp` | `Player/MpvPlayer.swift`, `Player/StreamProtocol.swift` |
|
||||
|
||||
@@ -79,6 +80,11 @@ Each of these is the platform's doing, not a choice to diverge.
|
||||
place of Android's `WatchSyncWorker`, and every five minutes while it is open.
|
||||
- **Background audio off pauses** the episode when the app leaves the screen, where
|
||||
Android stops it.
|
||||
- **New-episode checks run when iOS chooses.** Android's `NewEpisodesWorker`
|
||||
crawls every six hours on a network. iOS's `BGProcessingTask` is asked for no
|
||||
sooner than six hours, and the system decides when, mostly overnight on a
|
||||
charger. An app refresh would come more often but gets about thirty seconds,
|
||||
which a crawl of a large share does not fit in.
|
||||
- **Presses are drawn by hand.** Compose's ripple shows every press; SwiftUI's
|
||||
`.plain` button style and `onTapGesture` show none, which on a slow iPad reads as
|
||||
a tap that missed. `PressableStyle` and `tapAndHold` (`UI/Theme/Accent.swift`)
|
||||
|
||||
Reference in new issue
Block a user