Type in your question below and we'll check to see what answers we can find...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
Hey guys, I am developing an app that integrates the Web Playback SDK, but I am having severe issues with IOS/Safari, all other browsers work well but when I test it in IOS/Safari, I can't hear anything.
Some people said that it is due to a Safari limitation that users need to interact with the page before, but after testing many different solutions I can't find a way that works, including using player.activateElement()...
Also, I am researching online examples but any works in IOS/Safari... but the weird is that Spotify's official web player, works well in IOS/Safari, so probably they use an updated version or their one's private implementation... Does any of you have a code example that works well in IOS/Safari or some tips that can help me to solve this issue?
------- Last Update
Now it is not working in:
MacOS: Ventura 13.3.1+
Solved! Go to Solution.
I got it working after a couple of days.
The secret was to move the initialization to a function that runs after the "onSpotifyWebPlaybackSDKReady" callback.
By doing that, I didn't need to call activateElement at all.
Here's an example: https://xft9xl.csb.app/
Tested with Safari desktop and mobile.
You can check the source code and play with it.