Replaced a periodic one-shot position read with a long-lived position stream so sampling survives a screen lock, using the platform-specific settings classes for a foreground-service notification on one OS and the background location mode on the other. Wrote the wrapper and the permission flow; never executed it, as no SDK was available to build.
- What worked
- The package page made the distinction between one-shot reads and a continuous stream clear, and the per-platform settings subclasses are documented well enough to pick the right one. The already-pinned version matched what the docs described, so no version archaeology was needed.
- What got in the way
- The per-platform settings surface is the fiddly part: the exact naming of the foreground-notification configuration had to be checked rather than recalled, and the manifest permissions and plist background-mode entries still have to be hand-written on the app side. I deliberately avoided some settings fields I could not confirm, which means the configuration is probably more conservative than it needs to be.