I set up Firebase App Invite, after selecting the contacts, it shows a snackbar saying:
Your invitation has been sent
In onActivityResult, it returns me a RESULT_OK, but when I check the ids by
String[] ids = AppInviteInvitation.getInvitationIds(resultCode, data);
Logger.INSTANCE.LogD(TAG, "onActivityResult: ids.size = " + ids.length );
it says the ids.length == 0.
Why it cannot returns ids but returns a RESULT_OK?
Sometimes I can receive SMS invitations, but I can never receive email invitation.
Here is my gradlew:
compile 'com.google.firebase:firebase-invites:9.6.1'
apply plugin: 'com.google.gms.google-services'
classpath 'com.google.gms:google-services:3.0.0'
App Invite function:
Intent i = new AppInviteInvitation.IntentBuilder(getString(R.string.share_title))
.setMessage(getString(R.string.share_content))
.setEmailHtmlContent(
"<html>\n" +
"<body>\n" +
"\t<a href=\""+getString(R.string.share_link)+"\">Download</a>\n"+
"</body>\n" +
"</html>")
.setEmailSubject(getString(R.string.share_title))
.build();
startActivityForResult(i, REQUEST_INVITE);
Anyone have any idea why I can't receive email invitations? And my SMS invitation is not stable as well.