Rank 2: Process
I've been struggling with this problem on my servers (self hosted 1.6.0 & 1.7.4) , multiple projects , multiple apps , and I think I have reached a very strange conclusion:
If the same device (like mobile phone) is working with multiple apps (Flutter in my case) with different projects on the same server, there's a problem with the callback.
I have tried signing in on multiple devices , in all of them the process is similar:
- I run the createOAuthSession (with OAuthProvider.google).
- I get to the "Choose an account" screen, I select a google account
- it jumps to the server, I see Appwrite Logo,
- it jumps back to the "Choose an account screen" and stuck there.
- only if I press the X button in this screen , then it closes , and I am in my home page , the sign in process completed successfully , all the post authentication process finished.
That screen was obscuring it.
The only way I have managed to overcome this problem is by creating a new emulator, completely clean, when I installed the first app working with Appwrite, it closed the Google window automatically and continued to the home screen
Would love to hear your ideas.