简体   繁体   English

尝试使用 Apple Music 登录时,MusicKit 卡在加载屏幕上(用于媒体控制)

[英]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.

相关问题 Android Emulator 在 M1 mac/Apple Silicon 上卡住了加载屏幕 - Android Emulator stuck loading screen on M1 mac/ Apple Silicon Chrome自定义标签有时会在登录时卡在黑屏上 - Chrome custom tab gets sometimes stuck at blank screen during login Expo 尝试在真实手机上启动应用程序时卡在无休止的加载屏幕上 - Expo stuck on endless loading screen when trying to start app on real phone 在媒体播放器中加载多个音乐媒体 - loading multiple music media in mediaplayer 使用FB SDK允许用户登录但屏幕停留在加载中 - Using FB sdk to let user login but screen stuck at Loading 在模拟器中运行时,应用卡在启动屏幕上 - App gets stuck on splash screen when running in the emulator WebView 出现问题,卡在加载中 - Problem with WebView, gets stuck in loading Eclipse在尝试启动Android应用时遇到困难 - Eclipse gets stuck when trying to launch Android app 尝试使用 Apple MusicKit SDK 进行身份验证时出现 USER_CANCELLED 令牌错误 - Getting a USER_CANCELLED token error while trying to authenticate using Apple MusicKit SDK 当活动失去焦点时(当主屏幕或屏幕关闭时),Media Player会暂停音乐 - Media Player pauses the music when the activity loses focus(when home or screen goes off)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM