Using Spotify API in iPhone

Plan

Premium

 

Device

(iPhone)

 

My Question or Issue

 

I have integrated Spotify API on my website. When an alarm goes off, a playing song will pause and play in few seconds. This does not work on iPhone after some time. (Probably because Spotify app gets suspended). Can you suggest me a way to overcome this?

 

My website can run on Safari and also in a web view.

 

Child Item
Child Item
Child Item

Accepted answers

All comments

The only way to solve this would be to try to find a way to open the Spotify app from your website, thereby making it active again. This is the only way to get around the limitations of the app lifecycle on iOS. Spotify uses Apple's Universal Links, so this should be possible.

Child Item
Child Item