vikey89
vikey89

Reputation: 71

getToken(senderId, scope) throw IOException: INVALID_TARGET_VERSION

When I compile my app with target 30 (Android 11) the method FirebaseInstanceId.getInstance().getToken(senderId, scope) throw out the exception java.io.IOException: INVALID_TARGET_VERSION.

If I compile the app for Android Q instead, it works fine.

How can I set multi-senderID with an app with target 30?

Upvotes: 2

Views: 597

Answers (1)

vikey89
vikey89

Reputation: 71

I got an official response from the Firebase team, It is no longer possible to use the getToken(senderId, scope) method passing multiple senderIDs, but we must make a request for each senderID. I write it here maybe it can be useful to someone.

Upvotes: 3

Related Questions