I’ve set up a GPT Action following the OpenAI Cookbook tutorial to integrate Google Calendar with ChatGPT.
Everything works fine and as expected on:
- the web apps (iOS browser and laptop browser)
- desktop apps (macOS)
When I hit “Sign in with Google,” I can authenticate just fine, grant permissions, and then ChatGPT can access my calendar data.
But not on the official iOS ChatGPT application though.
I keep running into an error during the OAuth login step. It never completes the authorization, and I end up stuck without the ability to pull my calendar events.
step 1:
step 2:
step 3:
Here’s what I’ve tried so far:
• Double-checked that my redirect URI matches the one provided by ChatGPT, and that it’s listed as an authorized redirect URI in my Google Cloud Console settings.
• Confirmed that I’m using the same scopes and OAuth configuration that work perfectly on desktop and web.
• Updated the ChatGPT iOS app to the latest version, just to rule out any bugs.
• no VPNs
• added my email to the test users in google OAuth consent (in google console)
My ultimate goal is to be able to seamlessly sign in on iOS just like on desktop and web, so I can create and list calendar events from the ChatGPT iOS app. Has anyone else run into this problem, or does anyone know what might be causing the OAuth flow to fail specifically on iOS? Any guidance or suggestions would be appreciated.
Sidenotes: it’s an issue when initiating the OAuth connection for “the first time”. If I initiate from the web app or desktop app. It can continue to work on mobile (whether in the same chat or a new one) but only for some time. After that I need to re-initialise the OAuth and it’s not working if I do it from iOS (but again, it will only work on web/desktop app).
Hypothesis:
Since the iOS chatgpt app is opening the google authentication inside an embedded safari browser. Looks like the issue is how this embedded safari works with the chatGPT app. I tried to open in another browser (chrome or else) but I still face the issue and doesn’t ultimately redirect me to the chatGPT app.
similar issues here: