I added SHA1 debug and release keys in firebase console still no luck on why the invites are not being sent ?
Im new to firebase invites and implemented as per documentation :
invitesButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Amplitude.getInstance().logEvent("INVITE EVENT");
Intent intent = new AppInviteInvitation.IntentBuilder("Invitation")
.setMessage("Help your friend unlock his favourite celebrity at FanStation : app link here")
.setCustomImage(Uri.parse("https://postimg.org/image/5sbdexljh/"))
.setCallToActionText("Unlock Celebrity Now")
.build();
startActivityForResult(intent, REQUEST_INVITE);
}
});
// My Toast text doesn't appear in either case of success or failure because I get 65537 as request code and -1 as result code
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
Log.d("Invites", "onActivityResult: requestCode=" + requestCode + ", resultCode=" + resultCode);
Log.d("Invites","requestCode="+requestCode+"resultCode=" + resultCode);
if (requestCode == REQUEST_INVITE) {
if (resultCode == RESULT_OK) {
Amplitude.getInstance().logEvent("INVITE SUCCESS");
Log.d("Invites","Success");
Toast.makeText(getActivity(),"Invites Successful",Toast.LENGTH_LONG).show();
} else {
Amplitude.getInstance().logEvent("INVITE FAILURE");
Toast.makeText(getActivity(),"Please Try Again Later",Toast.LENGTH_LONG).show();
}
}
}