【问题标题】:How to send user information through Dynamic Links via Firebase Invites如何通过 Firebase 邀请通过动态链接发送用户信息
【发布时间】:2016-08-02 13:29:31
【问题描述】:

我正在尝试在我的应用中实现 Firebase 邀请功能。主要逻辑是用户在联系人列表中选择他/她的朋友,他们将通过 Firebase Invites 发送邀请以实现这一点,我想发送一些关于用户的信息以供我的应用程序识别。另一方面,他/她的朋友将通过电子邮件/短信收到一个动态链接(我认为这就是 Firebase 邀请的工作方式),如果他/她打开它,那么根据该动态链接中的数据,用户将要求添加他作为他/她的朋友。 根据 Firebase Docs,我可以看到这段代码

if let invite = FIRInvites.inviteDialog() {
    invite.setInviteDelegate(self)

// NOTE: You must have the App Store ID set in your developer console project   
    // in order for invitations to successfully be sent.

    // A message hint for the dialog. Note this manifests differently   depending on the
    // received invation type. For example, in an email invite this appears as the subject.

    invite.setMessage("Try this out!\n -(GIDSignIn.sharedInstance().currentUser.profile.name)")

// Title for the dialog, this is what the user sees before 
sending the invites.
        invite.setTitle("Invites Example")
        invite.setDeepLink("app_url")
        invite.setCallToActionText("Install!")
        invite.setCustomImage("https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png")
        invite.open()
      }

我的问题是如何创建一个包含用户信息的“app_url”以通过invite.setDeepLink("app_url") 方法发送。以及在朋友端如何处理。

谢谢。

【问题讨论】:

    标签: ios swift firebase firebase-dynamic-links firebase-invites


    【解决方案1】:

    在 Firebase 控制台中创建动态链接:

    1. 打开 Firebase 控制台。
    2. 通过单击侧边栏菜单上的动态链接打开动态链接页面。在此页面上,您可以查看动态链接列表及其点击率。
    3. 点击新建动态链接并确保选中生成动态链接。
    4. 提供动态链接的基本信息。 see documentation here

    不确定在“朋友方”处理它。

    【讨论】:

    • 您好,感谢您的回复,您能告诉我如何通过添加类似名称的内容以编程方式创建动态链接。
    猜你喜欢
    • 2021-07-15
    • 1970-01-01
    • 2019-06-04
    • 2019-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-27
    相关资源
    最近更新 更多