Search code examples
iosios11sfauthenticationsession

Why does SFAuthenticationSession consent alert show Xcode project name instead of App name?


I'm using SFAuthenticationSession to authenticate via OAuth2.

The consent the user has to agree displays the following message as an alert:

"[Xcode-Project-Name]" Wants to Use "[Server-URL]" to Sign In. This allows the app and website to share information about you.

Why isn't the App Display Name being mentioned?

Will it be the App name after App Store submission?


Solution

  • SFAuthenticationSession uses Product name for App Store apps too. It is deprecated in iOS 12 in favor of the new ASWebAuthenticationSession. Let's hope it is fixed to use app Display name instead.