Auth0 Home Blog Docs

Xamarin iOS app rejected on appstore for using safari auth

xamarin
ios
xamarin-forms

#1

Hi, we have implemented auth0 on a xamarin forms app following the example on github.

Unfortunately the app got rejected on the iOS appstore for the following reason: “We noticed that the user is taken to Safari to sign in or register for an account, which provides a poor user experience.”

They say a solution would be:
“We recommend implementing the Safari View Controller API to display web content within your app.”

But I really have no idea to do something like that in Xamarin. Maybe someone has some example how to do this?
Thanks!


#3

:wave: @nigmalab as you mentioned your application may be using a UIWebView, should be using SFSafariViewController I believe, to display the login page which as you experienced Apple will be rejecting apps that are implemented as such. Have you tried the following the OIDC examples https://github.com/auth0-community/auth0-xamarin-oidc-samples and/or the quick-start https://auth0.com/docs/quickstart/native/xamarin. We also had a recent new blog post about building a Xamarin forms app https://auth0.com/blog/developing-mobile-apps-with-xamarin-forms-and-azure-functions/.