Google AppInvite: Email is not sent, while SMS is sent

197 Views Asked by At

I am using google libraries with

 classpath 'com.google.gms:google-services:1.3.0'

And my appinvite library version is

 compile 'com.google.android.gms:play-services-appinvite:7.8.0'

While using appinvites, I can easily send invites using SMS and email. But on the receiving end only SMS is received, I can't send email.

Is it a bug in library or I am missing something else?

Edit: Everything else in my code follows google's appinvite guidelines.

2

There are 2 best solutions below

3
On

I tried the App invent demo app here, and followed the steps.

I can send the email and it can be received.

You can try and compare source code here with yours.

Maybe you forget connected the GoogleApiClient at begin. Note that in the top build.gradle, it contains:

classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.google.gms:google-services:1.3.0-beta1'
0
On

Looks like missing google-services.json. You need to put the google-services.json file in the app module inside your project.

See google-services.json location in the project tree