In short: A bug can cause Apple Music to keep signing you out. Sign out of your Apple ID, restart your phone, then sign back in. Clear site data including third-party cookies on the web.
Every once in a while, Apple Music randomly signs you out and makes you sign into an account that has never been used on your device. Let’s troubleshoot the issue, shall we?
Why does Apple Music keep asking me to sign in?
Apple Music keeps signing you out because of a bug. In fact, it has been happening regularly since beta testing. Hopefully, Apple addresses the issue and eliminates the bug soon.
How to prevent Apple Music from signing you out
I’ve managed to fix this incredibly annoying bug after piecing a few bits of information together. Here’s what you need to do to prevent Apple Music from signing you out (mobile and desktop).
1. Sign out of your Apple ID and restart your phone
I know this is going to sound like a stupid solution (because it is so simple and straightforward), but have you tried restarting your iPhone? Often, a simple restart can eliminate bugs.
You need to sign out of your Apple ID in Settings > iTunes & App Store. If you can’t access that (because it hangs, a common problem), then you’ll need to turn the device off and on again.
Sign back into your Apple ID and then go to Settings > Music to make sure Show Apple Music is on (green) and so is iCloud Music Library (if you’re also using it).
Then open the Music app. It may take a while to resync and you’ll need to download anything from Apple Music again, but it will solve the issue. It definitely worked for me.
After restarting my phone, Apple Music prompted “Can’t make this purchase” and “You already have Apple Music” as soon as I logged into my phone.
2. Clear site data (including third-party cookies)
Some people don’t have Apple Music signing them out on their iPhones, but constantly get logged out of the web version of Apple Music, which is quite frustrating.
Apple Music has the tendency to log you out if you have not been using the web app for a couple of days. It happens whether you’re using Safari on Mac or Chrome on Windows.
If you’re using Apple Music on the web, then you’ll need to clear site data (including third-party cookies). This workaround solves the issue whether you’re using Safari or Chrome.
Here’s how to clean Apple Music’s site data on Google Chrome:
- Open Developer Tools by pressing F12.
- Navigate to the “Application” tab.
- Navigate to the “Storage” item on the left.
- Press Clear site data (including third-party cookies).
Here’s how to clean Apple Music’s site data on Safari:
- In the Safari app on your Mac.
- Choose Safari > Settings, then click Privacy.
- Click Manage Website Data.
- Select one or more websites.
- Click Remove or Remove All.
Doing the steps above will clear all the local data garbage for Apple Music (music.apple.com) that builds up over time. There is no permanent fix for this issue, just this simple workaround.
And, after signing in again, do a hard refresh (CTRL+SHIFT+R) for good measure.
If you are using a MacBook, press Command + Shift + R. Don’t worry if you get a “not available in your region” error message after your first sign-in on Apple Music, it tends to happen.
I’m fortunate enough to know how to troubleshoot these problems because I’m a web-app developer, but I’m baffled why a trillion-dollar company cannot solve a simple bug.
Related articles: