Implemented in app Google AppInvite :

  • registered in build.gradle (project level)
  • registered in build.gradle (app level)
  • added java code to class
  • created the key in the Console Google Developer
  • copied *.json file to the /app directory of your project

Launched the app and got the APPINVITE_CLIENT_ID_ERROR . Or, to be precise,

 E/AppInviteAgent: Get suggested invitees failed due to error code: 3 No Android client ID is found for package name <MY_PACKAGE_NAME>. (APPINVITE_CLIENT_ID_ERROR) E/AppInviteAgent: Create invitations failed due to error code: 3 No Android client ID is found for package name <MY_PACKAGE_NAME>. (APPINVITE_CLIENT_ID_ERROR) 

Google problem, on enSO in one question only, it was said that the error was that the keys are different (SHA-1 in the application and in the Console ). But they cannot be different, I copied the *.json file to the project, and Google generated it to me.

I connected the LogCat, I caught this: onActivityResult: requestCode=0, resultCode=3 : onActivityResult: requestCode=0, resultCode=3 This is displayed if the sending failed.

    1 answer 1

    Generate * .json again. I had it

    • Generated it 2-3 times, no result. - web_alex
    • Do you happen to have different accounts in the console and in the android studio? Perhaps you need to create a new SHA in the studio. Open json and compare it with what the studio shows. - Alexander
    • In the studio there is no account at all, I did not log in. - web_alex
    • It’s possible that this is the case, I haven’t been able to understand in my application for a long time why it doesn’t generate a token for Firebase Cloud Message, until I saw that I have different accounts in the studio and in the console. I went to the studio in the account as in the console, it all worked. - Alexander
    • Tonight check your offer. - web_alex