Back

Change domain on production app

  • 0
  • Self Hosted
  • Flutter
hortigado
6 Feb, 2024, 21:24

Hi how could I change the domain of a Flutter app in appwrite if it is already in development mode and the users have the version with the previous domain. I have thought of some ideas:

  1. Create a redirect to the new url and put the new url in a new version of the app. But I don't know if this will cause problems with the session of users who are already logged in with the previous url.
  2. Create a new appwrite project with the new url and ask the user to log in again and upon entering upload their information again since I manage offline first. Which idea do you think is correct or which other do you think is appropriate. Thank you
TL;DR
The developer wants to change the domain of their Flutter app on Appwrite. They are considering two options: 1. Create a redirect to the new URL and update the app with the new URL. However, they are concerned about potential session problems for users who are already logged in with the previous URL. 2. Create a new Appwrite project with the new URL and ask users to log in again, uploading their information since offline functionality is managed. Solution: The developer should consider option 1 and ensure that session handling is properly managed to avoid any issues. They should thoroughly test the app to confirm that the redirect and session handling work correctly.
hortigado
6 Feb, 2024, 21:24

As you note, the old domain expires in 2 months and I want to change it

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