Get suggested invitees failed due to error code: 3

2019-04-29 19:20发布

问题:

I'm trying to run App Invites demo on a kitkat device but it returns

Get suggested invitees failed due to error code: 3

and soon after

Create invitations failed to error code: 3

What kind of error is it? Where i can find an error list?

回答1:

In my experience, this happens when the SHA-1 signature of your app is not compatible with the Android API key specified in the Google Developer Console

If you don't care which app invites you, then you might want to consider removing app/signature restrictions. Otherwise, simply add them.



回答2:

Log onto Firebase Console: https://console.firebase.google.com

You will need to click on the "Add Fingerprint" button and then add on your SHA1 key. You do not need to redownload your google-services.json, you just need to add the SHA1 key.

Try sending an app invite from your app. It will now work.