
You have to add your own project id

projectId is the correct project id in my Appwrite instance

Well you have to add the above code between application tags <application>…..</application> tag. Else it’s gonna crash

Yea, I have added those lines inside <application> tag, however, in this case, I am getting crash.
Without those lines added, I don't have crash, app stucs on Missing Redirect Url Page 😦

Can you please send me the debug log for the app?


I think you are following https://appwrite.io/docs/quick-starts/android but if you are using flutter you should follow https://appwrite.io/docs/quick-starts/flutter

Yes, in case when I am following flutter documentation then, I see Missing redirect URL and nothing more.

You have to add to your createOAuth2Session
function redirect URLs using the parameter success
and failure
.

On what platform? And what's your project id?

I guess it was Flutter. But the original post is no longer accessible.

are you still seeing this error?

So the solutions is to add success: "https://<ENDPOINT>/auth/oauth2/success"
and failure: "https://<ENDPOINT>/auth/oauth2/failure"
.
Also preparing Android and iOS is necessary: https://github.com/appwrite/sdk-for-flutter#android and https://github.com/appwrite/sdk-for-flutter#ios.
Recommended threads
- Flutter OAuth2 Google does not return to...
When the flow starts, the browser opens, I select an account, and it keeps showing: """ Page not found The page you're looking for doesn't exist. `general_rout...
- Redirect URL sends HTTP instead of HTTPS...
I am not sure since when this issue is present, but my Google and Apple redirect URI are no longer pointing to the HTTPS redirect URI when I try to use OAuth. ...
- Failing to run document operations on sd...
Could someone point me in the right direction I'm going in cirlces. I have a problem with sdks and my self-hosted server in production (for ~3 years) I have bee...
