I just implemented the Firebase Invites in my android app. I followed the online documentation as per the API Specs @ https://firebase.google.com/docs/invites/android
As per that I implemented the below code in the onActivityResult method.
@override
protected void onActivityResult(int requestCode, int resultCode, Intent data)
{
super.onActivityResult(requestCode, resultCode, data);
Log.d(TAG, "onActivityResult: requestCode=" + requestCode + ", resultCode=" + resultCode);
if (requestCode == REQUEST_INVITE)
{
if (resultCode == RESULT_OK)
{
// Get the invitation IDs of all sent messages
String[] ids = AppInviteInvitation.getInvitationIds(resultCode, data);
for (String id : ids)
{
Log.d(TAG, "onActivityResult: sent invitation " + id);
}
}
else
{
}
}
}
Currently the intent only has extra parameters set for the generated invitation IDS i.e. we can only get Generated invitation Ids.
IS there a way we can get the Contact Name( email/phone # ) chosen in the invitation page from the contacts provider returned back in the intent that can be captured in the onActivityResult
Something like
T[] contacts = AppInviteInvitation.getInvitedContact(...)....