android-sdk icon indicating copy to clipboard operation
android-sdk copied to clipboard

Play song with custom notification

Open skyberk opened this issue 4 years ago • 2 comments

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.

skyberk avatar Oct 23 '20 14:10 skyberk

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.

tobika avatar Oct 23 '20 15:10 tobika

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

lavpreetsandhu avatar Sep 28 '22 06:09 lavpreetsandhu