Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Web Playback SDK Playing song directly in browser issues (IOS/Safary)

Solved!

Web Playback SDK Playing song directly in browser issues (IOS/Safary)

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+

IOS: 16.4.1+

Reply
21 Replies

Hi, curious how this is fixed?  cc @TaliEscher

 

I'm still not able to get around the autoplay alerts in safari for my web app unless I create the player after the first click on the play button. This isn't ideal for obvious reasons.

 

To be clear, I'm not autoplaying anything, I'd just like to be able to create the player on pageload, so that when the user does click play, it's ready.

 

Thanks,

Phil

I've made a player that works on PC in all browsers (chrome, firefox and edge) but can't for the life of me getting it working on my partners MAC in any browser.  Does anyone have any idea why this would be?  I'm generating an auth code, swapping for access token.. I'm able to play full tracks on PC.. it works fine, but just won't on the mac.. confused...

 

Is anyone able to take a look?

 

www.musictree.app/premium  

 

to login to your spotify click on the musictree logo top right, and it will redirect back to main page.. it should start playing automatically after a few seconds...  I've got console log statements in 'Inspect'.  If anyone has a mac please post the results here and I can try get this working for everyone!

 

Kias, Australia

 

Suggested posts

Type a product name