Closed fotiDim closed 1 month ago
@fotiDim we currently don't use any method from the sdk itself but do something like this for android
.setResultCallback { playerState -> result.success(!playerState.isPaused && playerState.playbackSpeed > 0)}
So this should still work
@fotiDim we currently don't use any method from the sdk itself but do something like this for android
.setResultCallback { playerState -> result.success(!playerState.isPaused && playerState.playbackSpeed > 0)}
So this should still work
Maybe this is something we can adapt for iOS as well ?
@fotiDim we currently don't use any method from the sdk itself but do something like this for android
.setResultCallback { playerState -> result.success(!playerState.isPaused && playerState.playbackSpeed > 0)}
So this should still work
Maybe this is something we can adapt for iOS as well ?
Good point. I will make a commit. Then this PR is not even a breaking change.
EDIT: On second thought, we added the Android implementation only to have feature parity with iOS. Now that the native iOS method is gone maybe we should completely remove it from all platforms as it is custom business logic that by convention does not belong to the library. It could also be implemented by the end developer. I will make the commit anyway and if we decide against it I can remove it.
@brim-borium I have made the change as suggested. Let me know if you prefer to keep it or not, like I mention in my comment above.
@fotiDim we currently don't use any method from the sdk itself but do something like this for android
.setResultCallback { playerState -> result.success(!playerState.isPaused && playerState.playbackSpeed > 0)}
So this should still work
Maybe this is something we can adapt for iOS as well ?
Good point. I will make a commit. Then this PR is not even a breaking change.
EDIT: On second thought, we added the Android implementation only to have feature parity with iOS. Now that the native iOS method is gone maybe we should completely remove it from all platforms as it is custom business logic that by convention does not belong to the library. It could also be implemented by the end developer. I will make the commit anyway and if we decide against it I can remove it.
You are right the I will remove the android code on this branch as well and then we have feature parity to the sdks
@fotiDim I removed the android method and removed it from the sdk and the example as well. Can you remove it from iOS and after that we can merge this
@brim-borium done. Please double that all is all right.
@brim-borium done. Please double that all is all right.
Will do, can you check iOS?
@fotiDim android looks good you can merge if iOS is fine as well :)
All good. Merging.
Spotify released today v3.0.0 of the iOS SDK and they removed the
checkIfSpotifyAppIsActive
method. @brim-borium please verify if it will still be supported on Android.