The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.
04-11-2023 01:27 AM
In my iOS App I implemented the authentication flow according to the Strava Documentation.
Everthing works OK, except in the case when the StravaApp is used for authentication.
After the user has authorised the connection to Strava inside the StravaApp, it returns to my app but the callback to my AppDelegate never happens. So I don’t get the url with the authorization code. My App uses SwiftUI. I'm injecting the AppDelegate in in my App scene:
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
AppDelegate implementation:
class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
print("url returned from Strava App: \(url)")
return true
}
}
Thanks for your help
10-05-2023 05:26 AM
Hi, have you made any progress yet? I am also building an app in SwiftUI and need the same integration.
10-06-2023 04:16 AM
Hi Nils98
Unfortunately not.
As a workaround I use the <ASWebAuthenticationSession>.
09-07-2023 09:07 PM
Unfortunately not
09-06-2023 10:21 AM
Hey there @Aendu21 - did you ever get this sorted out? Thanks!
09-09-2023 04:52 AM
Hey @Elliott - Unfortunately not
Welcome to the Community - here is your guide to help you get started!