android - 限制用户可以使用 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()”方法时,它会打开这个邀请窗口,用户可以在其中从他们的联系人列表中选择尽可能多的收件人。我想要的是只允许用户在“添加收件人”下只添加一个收件人。
解决方案
推荐阅读
- jupyter-notebook - 有没有办法在 JupyterLab 中显示幻灯片边界?
- jmeter - 避免在 Jmeter 中使用多个请求覆盖 Hashmap
- php - Symfony 5 中的 FormType 在此上下文中不允许使用“App\Entity\User”类型的表达式
- ipaf - 我们如何从 IDE 获取 ALM 文件夹 ID?
- ruby-on-rails - Xero Ruby SDK for OAuth 2.0 在tenantId 中发送请求
- mongodb - 用于 postgres 的 Mongodb FDW 扩展
- undefined - 架构 armv7 的未定义符号(Mopub 谷歌网络)
- c++ - doxygen/sphinx C++17中的`unsigned int constexpr`
- c# - 锁定局部变量时出错:“可能不正确地分配给 local 这是 using 或 lock 语句的参数。”
- java - HPFortify - 动态代码评估:不安全的反序列化