-
Continuing where I left off this morning: Apple Music on the web. I did some more testing. It's kind of hilarious. 🧵👇 x.com/RGadellaa/status/1402153709673590793
-
So I went ahead and tried to open the Apple Music site on Chrome for Android (Pixel 5). Works. Just. Fine. I can play music, it continues in the background, I even get Now Playing controls in the notification area, with artwork and everything.
-
The Now Playing notification works on Android (and most desktop platforms when you use a proper browser) because the site uses the MediaSession API that Safari will finally start supporting in Safari 15.
-
I hoped that would also mean that background playback would finally work in home screen web apps on iOS. Noooooope. At least not on iOS 15 beta 1, according to my sources (haven't tried it myself yet).
-
Just to be clear: a site may play audio, and even continue to play audio in the background (other app in focus, screen turned off) - except when you add it as a home screen web app. That means the audio stops as soon as you turn off your screen or open another app.
-
Anyway. The Apple Music website works fine on phones. Except on iOS, because Safari refuses to open the website and directs you to the app.
-
Apple argues that the web is a viable alternative to publishing an app in their App Store, but they apparently can't even get their own music website working in their own browser on their own platform.
-
I'm saying "can't" and not "won't", because they're actively blocking Safari on iOS from opening the site. I'm guessing that Apple Music's website is hardcoded in some list of sites that cause a system popup dialog, prompting you to use the app instead.
-
So someone at Apple clearly went through the effort of making the site responsive, use the MediaSession API, etc, so it works good on mobile. But that person is working at Apple, so his work won't work on their own hardware. It must be a real shit job to be a web dev at Apple.

