This is the most important part for getting the redirect to work https://github.com/appwrite/sdk-for-apple/tree/1.1.0#registering-url-schemes.
Maybe clean and rebuild again?
tried clean build still didn't work i download the apple playground and trying that now with my cred but didn't work as well.
You sure the project id is correct?
yes copied from app dashboard
i thing i am trying understand it tried to open an app again and where does the uri of the app come from ?
Huh?
So thing is i first tried doing google sign in with my app named 'app' didn't work. then i tried download the apple appwrite playground then added all my cred and now when it redirects from the brower to my old 'app' not appwrite playground.
It directs to whatever all has the plist set up...I don't totally know how apple handles if multiple apps register the same callback url scheme 🧐
ok let me do one thing, let me don't do it on playground app, let me try it again on my app directly and post here the issues if any again.
Still facing same, currently it redirects to correct app but
got it it takes bundle it from appwrite when we register the projects and redirects to the same app uri
Oh hmm. This is working as expected from Appwrite side...I'm not sure about this "open page in ..." Prompt
just to confirm here, we create web the web app option only right ?
ok seems something going wrong here 😢 struck for few days on this
So what are you trying to achieve? Redirect without that open this page in ... Prompt?
I wanted to integrate the google signin on my iOS app.
But this is place it is struck something with missing redirect...
That missing redirect uri is expected. There were improvements to that page in later versions
But it doesn't complete the sign as well as sucess or failure on my app eventually
So what happens when you tap open?
it opens the same view again but doesn't return any value as well and does register as well user
what's your code.
perhaps you're just logging in the same previous user
let success = try account.createOAuth2Session( provider: "google" )
issue is it doesn't return any thing after than with which i can decide auth was sucess or not
createOAuth2Session
doesn't return anything. What you can do is run account.get()
and if it throws an error it means the user isn't logged in
Recommended threads
- Error: User (role: guests) missing scope...
I want to send a verification code to the user and the given phone number and check it and create a session right after the user entered the secret. For me that...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- How to verify an user using AppWrite Fun...
I have seen similar questions but none whose solutions serve me. I have a function to verify a user with their secret and their id: https://blahblah.appwrite.gl...