限制用户可以使用Firebase邀请的邀请数

时间:2019-01-20 23:14:49

标签: android firebase firebase-invites

我是Firebase的新手,我想知道是否可以限制用户可以发送的邀请数量。我正在寻找类似的东西:

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);
}

当调用方法“ onInvitedCliked()”时,它会弹出此邀请窗口,用户可以在其中从联系人列表中选择尽可能多的收件人。我想要的是只允许用户在“添加收件人”下仅添加一个收件人。

Invitation Window

0 个答案:

没有答案