首页 > 解决方案 > 限制用户可以使用 Firebase 邀请的邀请数量

问题描述

我是 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()”方法时,它会打开这个邀请窗口,用户可以在其中从他们的联系人列表中选择尽可能多的收件人。我想要的是只允许用户在“添加收件人”下只添加一个收件人。

邀请窗口

标签: androidfirebasefirebase-invites

解决方案


推荐阅读