简体   繁体   中英

MusicKit gets stuck on the loading screen when trying to login with Apple Music (for media contols)

I'm trying to use Apple's official MusicKit SDK for Android, I downloaded their example project for Android from here , and in the R.string file I replaced the JWT placeholder with my actual JWT token (which works for me with Apple Music Web API) and I'm trying to login with my Apple Music account to the example app so I can control the apple music media (play/pause/prev/next buttons) from within the example app, but when I try to open the login page it opens a new activity in the Apple Music app and it never finishes loading, it only shows the progressBar and never let me insert my login info.

I've been trying to solve this problem for the past week or so, I'd love to get some help :)

It's probably too late to answer this but since there are no answers posted for this question I will tell how it got fixed for me.

In order to authenticate a user for Apple Music, you need a developer token. I think there is some timeout or logic associated with the token expiry. After I refreshed this developer token, it worked for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM