Reputation: 33
I am new to firebase and I wanted to know if it is possible to limit the number of invites that a user can send. I am looking to have something like:
private void onInviteClicked() {
Intent intent = new AppInviteInvitation.IntentBuilder("An Invitation")
.setMessage(You have been invited")
.setNumberOfInvites(4) //where this only allows the user to invite four people.
This is just an example and firebase doesn't have this
.build();
startActivityForResult(intent, REQUEST_INVITE);
}
When the method "onInvitedCliked()" is called, it brings up this invitation window where the user can select as many recipients from their contact list. What i want is to only allow the user to only add one recipient under "Add Recipients".
Upvotes: 0
Views: 122