# 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:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesnurse](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jamesnurse/32/22490_2.png) [@jamesnurse](https://community.auth0.com/u/jamesnurse)\
**Post date:** [July 10, 2020, 4:24pm UTC](https://community.auth0.com/t/auth0-with-ionic-using-webapp-android-and-ios/46114/1 "2020-07-10T16:24:36Z")

</div>

Hi,

I have the same problem as [http://community.auth0.com/t/ionic-webapp-android-and-ios-how-make-them-works-all-together/44220](http://community.auth0.com/t/ionic-webapp-android-and-ios-how-make-them-works-all-together/44220)

I’ve spent a full day looking for a solution that works with Ionic & Auth0, trialling multiple technologies and have had no success.

We are developing an app in Ionic5/Angular9 which like the other ticket is going to be deployed in a Web app, Android app, and iOS. We want to make only one setup to all of them but I can’t find a solution that works in all places.

We also don’t want to use Ionic AuthConnect as this costs at minimum 4k additional per app per year when running on enterprise at 10k minimum.

The answer in the previous ticket pointed at a solution that only works when Cordova is running, so this does not solve the problem or mine as it needs to work in a web app too. I would suspect this is the problem everyone using a wrapped PWA hits, so isn’t an uncommon issue?

---

<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.
