mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
While a paired computer plays, the iPhone publishes a NowPlaying RemoteMediaSession through a new LinkNowPlaying ExtensionKit extension instead of starting local audio for a Lock Screen card. The app sends the track, position and volume over a method channel; the extension reads the computer's state and sends its commands directly over the pinned Link connection, so the card keeps working while the app sleeps. - Pairing credentials go to a Keychain item shared through the app group. An install without the app group, and so without that Keychain, carries them in the session attributes instead. - A desktop catalog song's cover comes from the computer's getCoverArt by song id. The app's own cover is a loopback proxy URL that the extension cannot use. - Errors returned to the system carry only their domain and code: a URL error's details cannot cross XPC and aborted the extension. Failures are logged to the device log without URLs or keys. - CI and release builds move to Xcode 27 and check that the extension is embedded. On a test device the card appears, but its controls and cover do not reach the computer yet; that is still being investigated.