Getting results from AppInvite Google android

I use the Google Appinvite Api in my android app to send an invitation to friends.

I can send a request and its working fine. But I want to track friends to whom I send a request through my application.

This is the code where I get the invitation id.

But how can I get the name or address of the sender from the invitation identifier.

@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == REQUEST_INVITE) { if (resultCode == RESULT_OK) { String[] ids = AppInviteInvitation.getInvitationIds(resultCode, data); Log.d("TAG", getString(R.string.sent_invitations_fmt, ids.length)); } else { showMessage(getString(R.string.send_failed)); } } } 

String [] ids is the array of invitation id sent by me

+5
source share
1 answer

As an application, you cannot get a list of usernames and email, only invitation identifiers. The email address and names are closed to the person who sent the invitation, that is, the person who owns the device and contact details, and that personal information is not transmitted to the application sending the invitation.

+1
source

Source: https://habr.com/ru/post/1240891/


All Articles