Skip to content

{"message":"ACCOUNTS_INVALID_APP_ID:INVALID_REQUEST: Invalid app identifier (iOS Bundle ID, Android Key Hash)"} #378

Open
@IUV1010

Description

@IUV1010

'com.spotify.android:auth:2.0.1'
spotify-app-remote-release-0.8.0.aar

public void connect(boolean showAuthView) {
        SpotifyAppRemote.disconnect(mSpotifyAppRemote);
        SpotifyAppRemote.connect(
                MainApplication.getContext(),
                new ConnectionParams.Builder(CLIENT_ID)
                        .setRedirectUri(REDIRECT_URI)
                        .showAuthView(showAuthView)
                        .build(),
                new Connector.ConnectionListener() {
                    @Override
                    public void onConnected(SpotifyAppRemote spotifyAppRemote) {
                        mSpotifyAppRemote = spotifyAppRemote;
                        Log.d(TAG, "connect : " + spotifyAppRemote.isConnected());
                        onSubscribedToPlayerState();
                    }

                    @Override
                    public void onFailure(Throwable error) {
                        logError(error);
                    }
                });
}

I have confirmed that the Android packages and SHA1 in the Dashboard match, and the SHA1 values are in uppercase. My project has only one keystore, which is used for both release and debug builds. The Client ID in the app also matches the ID in the Dashboard. However, I still keep getting this error. The SHA1 is obtained through ./gradlew signingReport.

I can now retrieve the token and user information, but I still can't connect to Spotify Music successfully.

Thanks for your response!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions