Merge Fix playing state not reported correctly to iOS - #1140
Merged
ryanheise merged 2 commits intoJul 1, 2026
Merged
Conversation
3 tasks
|
Appreciate this PR. It fixed a bug for me where CarPlay didn't pick up on the play progress for iOS either. |
juampiq6
reviewed
Feb 27, 2026
| @@ -290,10 +290,13 @@ - (void) updateNowPlayingInfo { | |||
| updated |= [self updateNowPlayingField:MPNowPlayingInfoPropertyElapsedPlaybackTime value:[NSNumber numberWithDouble:([position doubleValue] / 1000)]]; | |||
| MPNowPlayingInfoCenter *center = [MPNowPlayingInfoCenter defaultCenter]; | |||
| #if TARGET_OS_OSX | |||
There was a problem hiding this comment.
i think there is no need to keep the macro here ? maybe the old code is fine we just need to remove the macro checking for OSX
Owner
There was a problem hiding this comment.
Also, when I wrote this, Flutter supported older versions of iOS where this would not compile. My understanding is that Flutter now supports only iOS 13 and above which means technically you may be right, and we don't need this #if anymore.
19 tasks
Owner
|
I have merged this with the proposed changes outlined in the review/comments. |
APIUM
added a commit
to APIUM/finamp
that referenced
this pull request
Jul 10, 2026
- audio_service now sets MPNowPlayingInfoCenter.playbackState on iOS, merged upstream via ryanheise/audio_service#1140 (0.18.20) - Rebase the audio_service fork onto the latest upstream, dropping our copy of that fix and keeping the command registration and iosKeepNowPlayingOnStop commits - Remove the playback_state method channel and its Dart caller - Closes finamp-app#1590
APIUM
added a commit
to APIUM/finamp
that referenced
this pull request
Jul 10, 2026
- audio_service now sets MPNowPlayingInfoCenter.playbackState on iOS, merged upstream via ryanheise/audio_service#1140 (0.18.20) - Rebase the audio_service fork onto the latest upstream, dropping our copy of that fix and keeping the command registration and iosKeepNowPlayingOnStop commits - Remove the playback_state method channel and its Dart caller - Closes finamp-app#1590
APIUM
added a commit
to APIUM/finamp
that referenced
this pull request
Jul 12, 2026
- audio_service now sets MPNowPlayingInfoCenter.playbackState on iOS, merged upstream via ryanheise/audio_service#1140 (0.18.20) - Rebase the audio_service fork onto the latest upstream, dropping our copy of that fix and keeping the command registration and iosKeepNowPlayingOnStop commits - Remove the playback_state method channel and its Dart caller - Closes finamp-app#1590
APIUM
added a commit
to APIUM/finamp
that referenced
this pull request
Jul 12, 2026
- audio_service now sets MPNowPlayingInfoCenter.playbackState on iOS, merged upstream via ryanheise/audio_service#1140 (0.18.20) - Rebase the audio_service fork onto the latest upstream, dropping our copy of that fix and keeping the command registration and iosKeepNowPlayingOnStop commits - Remove the playback_state method channel and its Dart caller - Closes finamp-app#1590
APIUM
added a commit
to APIUM/finamp
that referenced
this pull request
Jul 12, 2026
- audio_service now sets MPNowPlayingInfoCenter.playbackState on iOS, merged upstream via ryanheise/audio_service#1140 (0.18.20) - Rebase the audio_service fork onto the latest upstream, dropping our copy of that fix and keeping the command registration and iosKeepNowPlayingOnStop commits - Remove the playback_state method channel and its Dart caller - Closes finamp-app#1590
APIUM
added a commit
to APIUM/finamp
that referenced
this pull request
Jul 12, 2026
- audio_service now sets MPNowPlayingInfoCenter.playbackState on iOS, merged upstream via ryanheise/audio_service#1140 (0.18.20) - Rebase the audio_service fork onto the latest upstream, dropping our copy of that fix and keeping the command registration and iosKeepNowPlayingOnStop commits - Remove the playback_state method channel and its Dart caller - Closes finamp-app#1590
APIUM
added a commit
to APIUM/finamp
that referenced
this pull request
Jul 12, 2026
- audio_service now sets MPNowPlayingInfoCenter.playbackState on iOS, merged upstream via ryanheise/audio_service#1140 (0.18.20) - Rebase the audio_service fork onto the latest upstream, dropping our copy of that fix and keeping the command registration and iosKeepNowPlayingOnStop commits - Remove the playback_state method channel and its Dart caller - Closes finamp-app#1590
APIUM
added a commit
to APIUM/finamp
that referenced
this pull request
Jul 12, 2026
- audio_service now sets MPNowPlayingInfoCenter.playbackState on iOS, merged upstream via ryanheise/audio_service#1140 (0.18.20) - Rebase the audio_service fork onto the latest upstream, dropping our copy of that fix and keeping the command registration and iosKeepNowPlayingOnStop commits - Remove the playback_state method channel and its Dart caller - Closes finamp-app#1590
APIUM
added a commit
to APIUM/finamp
that referenced
this pull request
Jul 12, 2026
- audio_service now sets MPNowPlayingInfoCenter.playbackState on iOS, merged upstream via ryanheise/audio_service#1140 (0.18.20) - Rebase the audio_service fork onto the latest upstream, dropping our copy of that fix and keeping the command registration and iosKeepNowPlayingOnStop commits - Remove the playback_state method channel and its Dart caller Closes finamp-app#1590
APIUM
added a commit
to APIUM/finamp
that referenced
this pull request
Jul 25, 2026
- audio_service now sets MPNowPlayingInfoCenter.playbackState on iOS, merged upstream via ryanheise/audio_service#1140 (0.18.20) - Rebase the audio_service fork onto the latest upstream, dropping our copy of that fix and keeping the command registration and iosKeepNowPlayingOnStop commits - Remove the playback_state method channel and its Dart caller Closes finamp-app#1590
APIUM
added a commit
to APIUM/finamp
that referenced
this pull request
Jul 28, 2026
- audio_service now sets MPNowPlayingInfoCenter.playbackState on iOS, merged upstream via ryanheise/audio_service#1140 (0.18.20) - Rebase the audio_service fork onto the latest upstream, dropping our copy of that fix and keeping the command registration and iosKeepNowPlayingOnStop commits - Remove the playback_state method channel and its Dart caller Closes finamp-app#1590
APIUM
added a commit
to APIUM/finamp
that referenced
this pull request
Jul 28, 2026
- audio_service now sets MPNowPlayingInfoCenter.playbackState on iOS, merged upstream via ryanheise/audio_service#1140 (0.18.20) - Rebase the audio_service fork onto the latest upstream, dropping our copy of that fix and keeping the command registration and iosKeepNowPlayingOnStop commits - Remove the playback_state method channel and its Dart caller Closes finamp-app#1590
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes the fact that a
#if TARGET_OS_OSXis excluding code from the build that would correctly report the playing state of the app to iOS versions >= 13.0 therefore breaking OS integrationsIssue fixed by this PR
Pre-launch Checklist
minorbranch OR my change is breaking and lands inmajorbranch.pubspec.yamlaccording to the pub versioning philosophy.* DESCRIPTION OF YOUR CHANGE (@your-git-username)).///).dart analyze.dart format.flutter testand all tests are passing.