Can't obtain the user's Apple Music token on macOS (Catalyst)

On a macOS app generated with Catalyst, the method SKCloudServiceController.requestUserToken(forDeveloperToken:completionHandler:) returns a SKErrorDomain. The error is:

Code Block
Error Domain=SKErrorDomain Code=0 "Ocorreu um erro desconhecido" UserInfo={NSLocalizedDescription=Ocorreu um erro desconhecido}


Has something changed regarding this method on macOS or is this a bug?
Hello @marcosatanaka,

Thank you very much for your feedback regarding this issue with requesting a user token from a macOS Catalyst app.

Several fixes have been made specifically for macOS Catalyst in the area of SKCloudServiceController in the past few weeks. Are you still encountering the same error with the latest beta version of macOS Big Sur when trying to request a user token from your Catalyst app?

Best regards,
Joe - I just dowloaded Big Sur beta 7 and I am(still) seeing this error (using Xcode 12 beta 6).

Thank you!

chris
Hi. Is there any update on this?

I'm seeing exactly the same issue on the production versions of Big Sur & Xcode 12.2.

Thanks in advance.
Hello @marcosatanaka, 

Thanks again for your feedback regarding this issue with requesting a user token from a macOS Catalyst app.

We have identified the root cause of this issue to be located on our server side infrastructure that is responsible for delivering the user token. We are working on addressing this regression; when we deploy this server side fix, the method SKCloudServiceController.requestUserToken(forDeveloperToken:completionHandler:) should begin working on existing versions of macOS Big Sur, such as 11.0.1.

Best regards, 
Thanks for the update @JoeKun!

I'll wait for the fix to be deployed. In the meantime, please let me know if you need more details about the problem, or if I can help in any other way.

Thanks!
@JoeKun very exciting!

Hello, I am facing same issue in (M1, 2020) Big Sur & Xcode 13.1. Error Domain=SKErrorDomain Code=0 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred}

Is this error fixed from apple?

Facing same issue in iOS 15.

Hello @diken.openxcell and @Riddhi_k,

This is a duplicate of this other thread: MusicKit unknown error getting user token.

Since that thread has more recent relevant activity, I will followup there directly.

Best regards,

Can't obtain the user's Apple Music token on macOS (Catalyst)
 
 
Q