ShazamKit Error Code 202

I am trying to recreate the application shown in the "Explore ShazamKit" WWDC session using code samples from the ShazamKit code-along session, and I've got everything done in the preparation part before session.match(signature) is called.

For some reason, the following function in the delegate:

func session(_ session: SHSession,
       didNotFindMatchFor signature: SHSignature,
                 error: Error?) {
        DispatchQueue.main.async {
            print("match error: \(String(describing: error))")
        }
    }

always prints:

match error: Optional(Error Domain=com.apple.ShazamKit Code=202 "Please check that you have enabled the ShazamKit App Service for this app identifier" UserInfo={NSDebugDescription=Please check that you have enabled the ShazamKit App Service for this app identifier})

What can I do to fix that?

The complete code for the app is available on my GitHub.

Edit: just wanted to add that I'm using Xcode 13.0 Beta 1, on macOS Big Sur 11.4

Answered by SULTAN_95 in 678705022

Hi there, I think you'll need to go to the Apple Developer Website and enable ShazamKit for your APP ID under the App services section

I believe you need an entitlement added to your profile. I am still trying figure out how to do this.

Accepted Answer

Hi there, I think you'll need to go to the Apple Developer Website and enable ShazamKit for your APP ID under the App services section

ShazamKit Error Code 202
 
 
Q