# Auth0 with Ionic using Webapp, Android and iOS

**URL:** <https://community.auth0.com/t/auth0-with-ionic-using-webapp-android-and-ios/46114>\
**Category:** Get Help\
**Tags:** ionic4\
**Created:** [July 10, 2020, 4:24pm UTC](https://community.auth0.com/t/auth0-with-ionic-using-webapp-android-and-ios/46114 "2020-07-10T16:24:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![HLR](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hlr/32/21279_2.png) [@HLR](https://community.auth0.com/u/HLR)\
**Post date:** [July 13, 2020, 11:37pm UTC](https://community.auth0.com/t/auth0-with-ionic-using-webapp-android-and-ios/46114/2 "2020-07-13T23:37:11Z")

</div>

I’m not sure if this will help, but I had the similar problem with my Cordova app. See my original post here:

> [@Hybrid login flow using Cordova+Auth0 Web SSO](http://community.auth0.com/t/hybrid-login-flow-using-cordova-auth0-web-sso/43596):
>
> Hello, I’m developing a Cordova app and would like to use Auth0 for SSO. But all the existing Auth0+Cordova examples for Cordova still reference inappbrowser plugin which is deprecated and now the latest Cordova version only supports WKWebView. Apple is also now rejecting any apps using inappbrowser plugin. Google also no longer supports SSO from embedded web views (hybrid apps) since that requires the user to actually login again and breaks the “user experience”. So I decided to take a diffe…

I’ve changed that flow a lot since June 1st, but the basic idea is the same.

I’m now using the **cordova-plugin-safariviewcontroller** plugin to launch what is essentially the same as “in app browser” to load my standard Auth0 login script via PHP on a web server. This plugin works on iOS and Android (on Android, it launches Chrome automatically). You can also test for it and if the plugin is not available in a regular web app, you can just use window.open() to open the same server based script to do the Auth0 login page, do the login, and pass the info back to the calling page.

It’s easier now that I don’t even need to use CUSTOM\_URL\_SCHEME as you can just control the safari-view-controller via javascript and close the window when the Auth0 login is complete.

I don’t know Ionic or Angular, but maybe this will help (since I know Ionic can use Cordova plugins).

So that’s how I do it for mobile and web apps using the same Auth0 login page.

---

_[View the full topic](https://community.auth0.com/t/auth0-with-ionic-using-webapp-android-and-ios/46114)._
