Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Fitbit Google Login not working in iOS platform

I'm currently facing an issue with Fitbit login on iOS devices. When attempting to log in using a Google account on the Fitbit OAuth page, the page keeps redirecting back to the Fitbit OAuth page after selecting google account, creating a loop. This behavior occurs only on iOS — everything works as expected on Android.

Setup Details:

Framework: Flutter

API Used: Fitbit Web API

Authorization URL Used: https://www.fitbit.com/oauth2/authorize?response_type=code&client_id=23Q3Y9&redirect_uri=mndprs-hesoyam38-fitbit://fitbit/auth&scope=activity%20cardio_fitness%20heartrate%20location%20nutrition%20profile%20settings%20sleep%20social%20oxygen_saturation%20respiratory_rate%20temperature&expires_in=10080

What I've Tried: The login flow works perfectly on Android. The issue only occurs on iOS when logging in with a Google account on the Fitbit OAuth page. No errors are thrown; it simply keeps redirecting back to the login page.

Video link of what's happening

https://drive.google.com/file/d/1yaQCkfgW11Q5yBz4zJSr2Z1Q83gsAbnv/view?usp=sharing

Question: What could be causing this redirect loop on iOS? Is there a platform-specific configuration or redirect URI handling issue that I might be missing?

Any help would be greatly appreciated!

Answer*

Draft saved
Draft discarded
Cancel
2
  • Even after adding the scheme, the problem didn't solve. What i also tried is changed my scheme from mndprs-hesoyam38-fitbit://fitbit/auth to mndprs://fitbit/auth and it is somehow working. Don't know why this behaviour, but i am not getting the loop issue since that change. Hopefully this resolves! Commented May 3, 2025 at 1:33
  • @bharat8 I am integrating Fitbit outh in flutter. I am slo facing similar problem in IOS. After 4-5 google sign in attempts only I am able to sign in. My redirect URI is com.mycompany.myapp://callback how to use it in info.plist Commented Jul 21, 2025 at 7:13

lang-dart

AltStyle によって変換されたページ (->オリジナル) /