Skip to main content

I'm developing a Web site. The site offers users to connect to Strava. It works well. However, many of my users use the Strava app and don't even remember their credentials. I would like the oauth2 flow to use the Strava app, not the Strava site for approval. Is there a way to do it?

Ciao ​@Ilanzisser. Give a look to the topic below. Hope it helps.

https://communityhub.strava.com/developers-api-7/oauth2-well-known-implementation-1856?tid=1856&fid=7


@Ilanzisser Are your users using your website on the smartphone or on a pc?


 ​@Jan_Mantau : The problem is just when smartphone users are using my site. 


The documentation states: 

Android apps can use an Implicit Intent to redirect users to the GET https://www.strava.com/oauth/mobile/authorize endpoint. The Strava app should open automatically if the user has it installed.

This URL should work the same when using it from the browser.


Hi ​@Jan_Mantau ,

First: thanks. It seems to work om my Android phone. 
I tested it yesterday on a Table (Samsung) and it didn’t work as expected. I will try to review that again. Do you happen to know about a solution for iPhone?

 

Thanks again,

 

Ilan


For IOS you could use strava://oauth/mobile/authorize to open the app but note that it’s up to the browser to know how to handle appname:// links. Safari should know what to do and ask the user if they want to open the app but alternative browsers may open an internet search instead.


@Jan_Mantau Thanks. Highly appreciated.