flutter_spotify_remote 0.0.4 copy "flutter_spotify_remote: ^0.0.4" to clipboard
flutter_spotify_remote: ^0.0.4 copied to clipboard

Control the Spotify app from Flutter: playback commands, a real-time player state stream, and OAuth with silent token refresh on both iOS and Android.

0.0.4 #

Android auth parity. Android now implements the full session/token contract that previously existed only on iOS.

  • Android: implemented initializeSession() / renewSession() — previously notImplemented, so Android never obtained a token
  • Android: getAccessToken() now returns the live token instead of a NOT_SUPPORTED error, and the accessToken event is emitted with the same source values as iOS (firstAuth / silentRefresh)
  • Android: OAuth via the Spotify auth library (com.spotify.android:auth), with backend token swap and refresh when tokenSwapURL / tokenRefreshURL are set
  • Android: connectWithToken() now reuses the supplied token with showAuthView(false) instead of running an interactive connect, so silent reconnects no longer app-switch into Spotify
  • Android: declared <queries> for com.spotify.music — Android 11+ package visibility made connect() fail with CouldNotFindSpotifyApp even when Spotify was installed
  • Android: SPOTIFY_NOT_INSTALLED / TOKEN_EXPIRED error codes and the disconnected event now match the iOS contract; spotifyUri is honoured on connect
  • Android setup now requires the redirectSchemeName / redirectHostName manifest placeholders — see README
  • Added canPlayOnDemand() — reports whether the connected account may play an individual track URI (Spotify Free accounts cannot), so callers can adapt the UI instead of letting play() fail
  • iOS: unchanged

0.0.3 #

  • Bundled SpotifyiOS.xcframework (v5.0.1) directly — no Podfile source required in consuming apps
  • Fixed initiateSession build error caused by new required campaign parameter in SDK v5.0.1
  • Added initializeSession() — configures SPTSessionManager with backend tokenSwapURL and tokenRefreshURL so 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 source field to SpotifyAccessTokenEvent ('firstAuth' / 'silentRefresh' / 'directAuth') so callers can distinguish how each token was obtained
  • iOS: SPTSessionManagerDelegate fires SpotifyAccessTokenEvent on both first auth and every automatic renewal; SPTAppRemote is 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
  • SpotifyAccessTokenEvent for Flutter-side token persistence (iOS)
  • Typed exceptions: SpotifyNotInstalledException, SpotifyAuthException, SpotifyConnectionException, SpotifyCommandException
3
likes
160
points
128
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Control the Spotify app from Flutter: playback commands, a real-time player state stream, and OAuth with silent token refresh on both iOS and Android.

Repository (GitHub)
View/report issues

Topics

#spotify #music #audio #player #oauth

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_spotify_remote

Packages that implement flutter_spotify_remote