Closed EXEIdeas closed 1 year ago
@EXEIdeas Hi sorry to hear that iOS does not work for you. @fotiDim can you have a look at this?
@EXEIdeas, can you provide a minimal example that replicates the issue? Ideally, based on the example app.
HI @fotiDim & @brim-borium Sorry for the late reply, here is the minimum viable problem example. https://github.com/EXEIdeas/spotify_sdk-example
@fotiDim @brim-borium Any Update...???
HI @fotiDim & @brim-borium Sorry for the late reply, here is the minimum viable problem example. https://github.com/EXEIdeas/spotify_sdk-example
@fotiDim @brim-borium Any Update...???
HI @fotiDim & @brim-borium Sorry for the late reply, here is the minimum viable problem example. https://github.com/EXEIdeas/spotify_sdk-example
@EXEIdeas not yet. I will try to have a look within the weekend.
This was posted on May 2. Any updates. Although the Spotify works with few minor issues like Player State is just bad and doesnt update sometimes, but this exception is consistent and is possibly crashing the app too.
@jasminder Still have the issue. It is working fine until I am not starting background service. Then after starting the background service, it started giving me the above error. What I think is that MethodChannel names are messing up...
@jasminder are you also using flutter_background_service?
@fotiDim No, we are not using flutter_background_service. In our case, Spotify does work, but, it crashes the app as we have tried the app by removing this package and the app works fine. This package is slowing down the app and even crashing it, while continuously throwing the listen, cancel exceptions.
@jasminder @fotiDim Yes, this is the problem. It is happening may be due to the same channel name as flutter_background_service also use channels with name like play, pause etc Can you look into that way?
@EXEIdeas please check if this pr fixes your issue
@jasminder you can use (listen/cancel) subscribePlayerState()
subscribePlayerContext()
streams only after connecting successfully to Spotify
We can reopen if the issue was not solved with the merged PR. Until there is a new release you can point your pubspec to the master branch of this repo.
@fotiDim
Well I am using spotify_sdk: ^2.3.1
so I am getting Because runwith depends on spotify_sdk from git which requires SDK version >=3.0.6 <4.0.0, version solving failed.
when trying to add below in pubspec.ymal
...
spotify_sdk:
git:
url: https://github.com/brim-borium/spotify_sdk.git
ref: main
@EXEIdeas you have to update your dart sdk version (>=3.0.6 <4.0.0 ) to use latest spotify_sdk
@rohitsangwan01 @fotiDim @jasminder @brim-borium
Thanks to all for your support and help. Finally it is working with flutter_background_service
with using lates flutter and dart. Now release it officially as it will help others too.
Have a Nice Day.
A new version has been released and can be used from pub.dev: https://pub.dev/packages/spotify_sdk/versions/3.0.0-dev.3
Hi, I am using a free Spotify account for development purposes only. I am trying to use this to connect my Flutter iOS application with Spotify. One thing to mention in advance is that the whole code I did is working fine on Android perfectly but not on iPhone. I followed the instructions in the section Setup the iOS SDK of Spotify iOS SDK Quick Start. It connects then returns a token and opens my application and songs start playing on Spotify. I am able to hit the button at the bottom and it also changes the song "I'll Make a Man Out of You" which is linked in the example at https://github.com/brim-borium/spotify_sdk/tree/main/example
Well I just copied example project files in my project and use my ClientID and RedirectURL and it works well in Andriod but when I run it on iOS it started giving me the below error...
So my main bug is
MissingPluginException(No implementation found for method listen on channel player_state_subscription)
&MissingPluginException(No implementation found for method listen on channel player_context_subscription)
that was not showing earlier and crashing the app in iOS then I did this https://www.appsloveworld.com/coding/ios/1092/gcdwebserver-always-aborts-on-options-check then I am able to see upper error code.Here is the rest of the required details...
Other Plugin
Fluter Doctor
Target Platform, Version & Device
Development OS
UPDATE:
After trying multiple ways, I found out that "flutter_background_service" plugin is breaking this Spotify Player State Stream. When I stop background service then it is working fine but when I start background service before the Spotify connection then it is giving me this error. Now how to keep both?