spotify / android-sdk

Spotify SDK for Android
https://developer.spotify.com/documentation/android/
Apache License 2.0
462 stars 119 forks source link

Play song with custom notification #276

Open skyberk opened 3 years ago

skyberk commented 3 years ago

play song function working perfectly but i dont want to use spotify's default sticky notification. Can i hide it or create a custom notification for my app when user play song. Because user should not skip the song in my app scenario.

tobika commented 3 years ago

Hey, I haven't tried this but remember that you can define a stream type as a second argument when you start playing a track. https://spotify.github.io/android-sdk/app-remote-lib/docs/com/spotify/android/appremote/api/PlayerApi.StreamType.html

In the example they say it's for ALARM sounds, so maybe in this case they won't show the notification? Maybe this helps.

lavpreetsandhu commented 2 years ago

hi @skyberk have to tried anything or is there any way to solve this problem ... i am facing same problem.... Waiting for you reply.