ios – Music Equipment Integration Concern: Requesting Developer Token on Android

Spread the love

I’ve built-in music_kit model 1.1.0 into my Flutter app, and I used to be in a position to efficiently acquire the developer token and consumer token on iOS. Nevertheless, I’m encountering points with the identical circulate on Android.

From what I perceive, the plugin on iOS instantly extracts data from the system, however on Android, it appears to require an authentication/login circulate because it’s extra of an app integration the place we provoke the login course of manually. Nevertheless, this automated circulate isn’t occurring as anticipated on Android.

By default, I’m receiving the next error:

PlatformException(requestDeveloperToken, null, java.lang.mirror.InvocationTargetException
    at java.lang.mirror.Technique.invoke(Native Technique)
    at app.misi.music_kit.ChannelHandler.onMethodCall(ChannelHandler.kt:123)
    at io.flutter.plugin.frequent.MethodChannel$IncomingMethodCallHandler.onMessage(
    at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(
    at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(
    at io.flutter.embedding.engine.dart.DartMessenger$$ Supply:12)
    at android.os.Handler.handleCallback(
    at android.os.Handler.dispatchMessage(
    at android.os.Looper.loop(
    at java.lang.mirror.Technique.invoke(Native Technique)
at co

I’ve tried so as to add the next exercise to the AndroidManifest.xml file:

    android:theme="@fashion/MusicKitAuthTheme" >
        <motion android:title="android.intent.motion.VIEW" />

        <class android:title="android.intent.class.DEFAULT" />
        <class android:title="android.intent.class.BROWSABLE" />

            android:scheme="musicsdk" />

Nevertheless, I am nonetheless encountering the identical error. Any steerage on the way to resolve this difficulty and allow the right authentication circulate on Android can be drastically appreciated. Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *