cancel
Showing results for 
Search instead for 
Did you mean: 

Using Strava iOS or Android app for 0auth from a web app

marcvander
Shkhara

Hello,

I have developed a web app. It requires people to connect with Strava. The current flow is the following: when the users click on "Connect with Strava", I redirect them to https://www.strava.com/oauth/authorize with all the query parameters. It works fine on mobile and desktop browsers.

I'm now looking to implement another flow when users are using my web app on their mobile phone. I want to open the Strava app instead of the Strava web version when the user has the Strava app installed. For this, I'm following the guidelines here: https://developers.strava.com/docs/authentication/

On iOS, I redirect the users to strava://oauth/mobile/authorize (with the exact same query parameters than my current working flow with the Strava web version). It properly opens the Strava app on the iOS device, but right after (approx. 1 second), it redirects the user back to the redirect_uri (which is my web app) without letting him give his consent. 

Could this be caused because my app is a web app and not an installed iOS app on my users' devices? Or am I missing something with the query paramaters?

Thanks a lot,
Marc

1 REPLY 1

SkippyVasquez
Moderator Moderator
Moderator

Hey marcvander, thanks for writing in. You should be able to have users navigate from a web app on mmobile and go through the mobile auth flow if you have the Strava app installed. To continue troubleshooting, take a look at our Authentication docs and let us know if you still can't get it to work.

 

Skippy
STRAVA | Developer Hub Team


Ready, Get Set, Go!

Welcome to the Community - here is your guide to help you get started!


Know how to use Community


Understand Community Settings