Hi, I tried to implement the Sign-In-With-Apple functionality in my iOS-App. It almost works, because appwrite is already creating the user, but on the client-side i cannot login. When the user is done confirming the Apple-Screen the browser windows stays open saying: {"message":"Route not found. Please ensure the endpoint is configured correctly and that the API route is valid for this SDK version. Refer to the API docs for more details.","code":404,"type":"general_route_not_found","version":"1.7.4"}
I am almost 100% sure I set everything up correctly, also the Service Identifier with the returnURL. But clearly I miss something. Does anyone knows whats up here? Thank you
SignUp with Apple failed
on other platforms or on older ios devices, it's in the webview
Okay maybe I miss understood as right now a safari web view is what’s prompting me to sign in. And then giving me the error after Face ID scan
The error is in a safari window that’s a sheet over my app
no, there's another bottomsheet above the webview
[app] [webview] [bottomsheet]
Okay yeah that’s what I get
[app] [webview]
it used to just be like this
So is the pr you linked fixing this? Because after I scan my face it goes to this page or the page Eric is describing
The PR is for a Appwrite Function template that you can use as an alternative to account.createOAuth2Session() that doesn't use any webview so you won't have that redirect issue
I gotcha, so will my current approach not work? Do I need to wait for that pr to be merged?
My Page is more looking Like This, but it still is a redirecting issue.
Would you suggest to wait for a merge?
I've gotten that too when I add a
success: "\(api.appwriteEndpoint)/auth/oauth2/success",
failure: "\(api.appwriteEndpoint)/auth/oauth2/failure",
to my createOAuth2Session
And how do you get the other page?
I omit the success and failure becuase from my understanding you don't need them as the callback url in the service ID should be able to handle the redirect.
But I very well could be wrong as it's not working lol
your current approach will not work. you can either:
- wait for us to publish an article on how to use the Appwrite Function
- deploy the Appwrite Function yourself
How long do you think it will take for this article/docs to be released and PR merged?
could take a couple weeks or so depending on testing and reviews
Any news regarding the docs?
we're still working on getting it added to the Console.
That said, you shouldn't be blocked. You should be able to deploy https://github.com/appwrite/templates/tree/main/dart/sign_in_with_apple
The template is available in the Appwrite Console now
Recommended threads
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...