0
我正在嘗試在我的應用中實施Firebase邀請功能。主要邏輯是用戶在聯繫人列表中選擇他/她的朋友,他們將通過Firebase邀請發送邀請來實現此目的,我想發送一些有關用戶信息的和平以通過我的應用程序進行識別。另一方面,他/她的朋友將通過電子郵件/短信收到動態鏈接(我認爲這就是Firebase邀請的工作方式),如果他/她根據該動態鏈接中的數據將其打開,則用戶要求添加他作爲他/她的朋友。 據火力地堡文檔我可以看到這個代碼如何通過動態鏈接通過Firebase邀請發送用戶信息
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")
方法發送。以及如何在朋友那邊處理它。
謝謝。
嗨,感謝您的答覆,請你告訴我如何通過編寫程序添加類似Name的動態鏈接。 – ilvcs