Back

How to createTeamMembership?

  • 1
  • Android
  • Teams
  • Cloud
retr122
2 Jul, 2023, 09:01

I'm trying to createTeamMembership in Java but I don't understand how it works. The email successfully sended to new team member's email, but when he open it, it don't redirect to my app. At this time, in team added a new member, but he had invalid date joined. What am I doing wrong?

TL;DR
User is asking how to create team membership. Another user suggests using deep linking and passing a URL that directs the user to the app. The user is also advised to check their code and ensure the link is opening in their app instead of Google Chrome. No solution is provided in the thread.
Drake
2 Jul, 2023, 13:23

What's your code?

retr122
2 Jul, 2023, 13:25
retr122
2 Jul, 2023, 13:26

This code successfully sends Email with link, but when I open the link he opens in Google Chrome, not my app(

Drake
2 Jul, 2023, 13:31

You're passing https://cloud.appwrite.io for the url. Instead, you should pass a url that will direct the user to your app where you can finish the flow by calling https://appwrite.io/docs/client/teams?sdk=web-default#teamsUpdateMembershipStatus

retr122
2 Jul, 2023, 13:41

How should it look? Do I need to use Custom Domains there?

Drake
2 Jul, 2023, 13:42

No. You should probably look into deep linking

retr122
2 Jul, 2023, 13:52

Ok, I learn about it and feedback later

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more