flutter_spotify_remote 0.0.3
flutter_spotify_remote: ^0.0.3 copied to clipboard
A Flutter plugin for Spotify App Remote SDK. Control playback, subscribe to player state, and manage auth on iOS and Android.
0.0.3 #
- Bundled
SpotifyiOS.xcframework(v5.0.1) directly — no Podfilesourcerequired in consuming apps - Fixed
initiateSessionbuild error caused by new requiredcampaignparameter in SDK v5.0.1 - Added
initializeSession()— configuresSPTSessionManagerwith backendtokenSwapURLandtokenRefreshURLso the iOS SDK performs silent token refresh automatically (~every 55 min), with no app-switch after the first user approval - Added
renewSession()— manually triggers a silent backend refresh at any time - Added
sourcefield toSpotifyAccessTokenEvent('firstAuth'/'silentRefresh'/'directAuth') so callers can distinguish how each token was obtained - iOS:
SPTSessionManagerDelegatefiresSpotifyAccessTokenEventon both first auth and every automatic renewal;SPTAppRemoteis reconnected automatically after silent refresh
0.0.2 #
- iOS improvements and bug fixes
0.0.1 #
- Initial release
- iOS support via Spotify iOS SDK v5.0.1 (CocoaPods — no bundled xcframework)
- Android support via Spotify Android App Remote SDK (.aar)
- Playback control: play, pause, resume, skip next/previous, seek, shuffle, repeat
- Real-time
Stream<SpotifyEvent>for player state and connection changes SpotifyAccessTokenEventfor Flutter-side token persistence (iOS)- Typed exceptions:
SpotifyNotInstalledException,SpotifyAuthException,SpotifyConnectionException,SpotifyCommandException