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?
Votes
1
Replies
24
Participants
Unknown
Messages
25
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?
Rank 1: Thread
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?
Rank 1: Thread
yes copied from app dashboard
Rank 1: Thread
i thing i am trying understand it tried to open an app again and where does the uri of the app come from ?
Huh?
Rank 1: Thread
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 🧐
Rank 1: Thread
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.
Rank 1: Thread
Still facing same, currently it redirects to correct app but
Rank 1: Thread
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
Rank 1: Thread
just to confirm here, we create web the web app option only right ?
Rank 1: Thread
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?
Rank 1: Thread
I wanted to integrate the google signin on my iOS app.
Rank 1: Thread
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
Rank 1: Thread
But it doesn't complete the sign as well as sucess or failure on my app eventually
So what happens when you tap open?
Rank 1: Thread
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
Rank 1: Thread
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