iOS Safari browser issue on Flutter Web GetSession session after sign in Google
- 0
- Flutter
- Web
- Cloud
I am using the Flutter Web to develop on my web site to login account on Appwrite cloud. On my web site, it will be signed in Google using CreateOAuth2Session and run getSession(current). However it is failed to get the Session and return "error with code 401" on iOS Safari or Chrome browser only. The strange thing is that it is working fine on the Android Chrome browser, Microsoft Windows 11 OS Edge and Chrome browser. I can get the Session with the provide "Google". So I believe my flutter code are fine. Anyone can help me to troubleshooting on iOS browser?
401 means unauthorised, either the user didn't login or something went wrong during the login process. Anything in the dev. console if you try on a mac or a pc?
For Android, Windows device, everything is fine. It can get Google session.
But in iOS browsers, it is detected unauthorized. However when I checked the Appwrite Cloud website - Auth sessions. I can see my iOS login in Appwrite cloud Auth page session. It is showing “Mobile Safari 17.3 on iOS 17.3”.
I don’t know why my web page on iOS browser can’t detect (run getSession(current) code) Google session.
Hey!
Maybe this issue is the same as yours? https://discord.com/channels/564160730845151244/1214113422019403776/1214424692216307812
I am using Flutter dart language to develop webpage. That article looks like using Apple Swift language and wrote iOS app.
It is not the same issue.
Recommended threads
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...