Back

[SOLVED] Teams and permission

  • 0
  • Teams
pandemoniun
5 Apr, 2023, 18:42

Sorry if my question is not new, but I was reading about teams, you can create teams, and allow user to do teams. I want to do in flutter, I don't see the worflow for create a team, and invite friend who use your app with appwrite in real time. For example I create a team with permission of reading my content and allow members to send content, how can I notify the member that I required to join the team and how can they send content to the team?, I see a very flexible squema of permission in teams, my doubt is how can notify the member that I add to their devices without use mail system to join the team

TL;DR
The user had a question about how to create teams and invite friends using Appwrite in Flutter. They didn't want to use email for invitations and preferred a faster method. The solution provided was to use the `teams.createMembership()` function to invite someone to a team, and they would receive an email with a link. To avoid email, the user would have to manage the process themselves and use the realtime API for real-time notifications. The solution also mentioned using deep links to direct users to the app.
Drake
5 Apr, 2023, 18:54

To invite someone to a team, you would call teams.createMembership(): https://appwrite.io/docs/client/teams?sdk=flutter-default#teamsCreateMembership. The other person will get an email with a link. They should click on the link and be directed to your app (using deep links) where you can grab the secret and call teams.updateMembershipState() https://appwrite.io/docs/client/teams?sdk=flutter-default#teamsUpdateMembershipStatus. At that point, they can access the data.

Appwrite's teams.createMembership() uses email. If you want to do something else, you'll have to manage it all yourself with maybe functions and then you can use the realtime api to do things in realtime

pandemoniun
5 Apr, 2023, 18:55

Thanks Steven for your response, very profesional, resolve my doubt. But I don't want to use mail, to much work for a user, I see another response better of you without mail, if they dislike invitation, they can't deny with a buttom, more faster without going out or checking mails, the user don't like to work or think

Drake
5 Apr, 2023, 18:57

👍🏼 if you're all good, please prefix the post title with [SOLVED]

pandemoniun
5 Apr, 2023, 18:59

Teams and permission[SOLVED]

pandemoniun
5 Apr, 2023, 18:59

Done

Drake
5 Apr, 2023, 19:05

[SOLVED] Teams and permission

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