Detect if User Cancelled Oauth Dialog Communications.makeOAuthRequest(...)

Former Member
Former Member
In my app, I show a loading dialog while the oauth flow is pending, ie after:
Communications.makeOAuthRequest(...)

If the user closes the oauth dialog / dismisses the notification on the phone, is there a way to detect this?

I have the Garmin app listening for messages via:
Comm.registerForOAuthMessages(...)
...but that callback doesn't seem to get called (at least in the simulator under sdk 2.3.4).
  • Former Member
    Former Member
    I can see how it would be useful, but I don't think I have seen a response come back from the user dismissing the notification. If there were to be one, it might make sense to add on another OAUTH_* constant in communications.
  • Former Member
    Former Member
    I worked around it for now by just having a timer on the whole request flow, but it's not ideal :/
  • Former Member
    Former Member
    It's been a few years since I was involved in the discussions but I believe we made the intentional decision to not communicate back if the user canceled/closed/ignored the notification with the OAuth flow. I think the reasoning was because the iOS team told us they could not register to be notified if the system notification asking the user to sign in was dismissed. Again, this is a few years ago so I may be mis-remembering the discussion. I will open a request to add this to the flow though as I (still) think it's a valuable use case.