I am trying to implement Firebase Invites feature in my app. Main logic is that the user select his/her friends in the contacts list and they will send invitation via Firebase Invites to achive this i want to send some peace of information about the user to recognise by my app. On the other end his/her friend will receive a Dynamic Link(I think that's how Firebase Invites work) via Email/SMS and if he/she opens it then according to the data in that Dynamic Link the user is going ask to add him as his/her friend. According to Firebase Docs i can see this code
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()
}
My question here is how can i create a "app_url" with user information to send in invite.setDeepLink("app_url")
method. And how to handle it in the friend side.
Thanks.
Create a Dynamic Link in the Firebase console:
Not sure about handling it in the "friend side."
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.