[英]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.我正在尝试使用 Apple 的官方 Android MusicKit SDK,我从这里下载了他们的 Android 示例项目,在 R.string 文件中,我用我的实际 JWT 令牌替换了 JWT 占位符(这对我来说适用于 Apple Music Web API ) 并且我正在尝试使用我的 Apple Music 帐户登录到示例应用程序,以便我可以从示例应用程序中控制苹果音乐媒体(播放/暂停/上一个/下一个按钮),但是当我尝试打开登录页面时它会在 Apple Music 应用程序中打开一个新活动,但它永远不会完成加载,它只显示进度条,并且从不让我插入我的登录信息。
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.为了验证 Apple Music 用户的身份,您需要一个开发者令牌。 I think there is some timeout or logic associated with the token expiry.
我认为有一些与令牌到期相关的超时或逻辑。 After I refreshed this developer token, it worked for me.
刷新此开发人员令牌后,它对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.