# Ionic5 + Capacitor on IOS does not redirect to app after success login

**URL:** <https://community.auth0.com/t/ionic5-capacitor-on-ios-does-not-redirect-to-app-after-success-login/68641>\
**Category:** Get Help\
**Tags:** ionic\
**Created:** [August 26, 2021, 6:09pm UTC](https://community.auth0.com/t/ionic5-capacitor-on-ios-does-not-redirect-to-app-after-success-login/68641 "2021-08-26T18:09:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tardelli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tardelli/32/30842_2.png) [@tardelli](https://community.auth0.com/u/tardelli)\
**Post date:** [August 26, 2021, 6:09pm UTC](https://community.auth0.com/t/ionic5-capacitor-on-ios-does-not-redirect-to-app-after-success-login/68641/1 "2021-08-26T18:09:55Z")

</div>

Hi everyone,

I have an app in Ionic5 + Capacitor created and configured like the [tutorial](https://auth0.com/docs/quickstart/native/ionic-angular) says. On Android it works correctly but onIOS, after successful login, I get the message:

> Safari cannot open the page because the address is invalid

I think it’s something about the URL\_SCHEME to configure for IOS that I haven’t done yet.

In Xcode I added a URL Type in the info tab with the “appId” from my _capacitor.config.json_ file in the identifier field but it’s still didn’t work

Obs: This App was not published on the apple store and for test I have just opened Xcode pointing to my iOS folder and run the simulator as I did for android and android studio. As it’s a private app we just want to show it to the customer using an iPhone simulator before publishing.

Can anyone help me?

Thanks

---

<div class="post-metadata">

**Author:** ![tardelli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tardelli/32/30842_2.png) [@tardelli](https://community.auth0.com/u/tardelli)\
**Post date:** [August 26, 2021, 10:22pm UTC](https://community.auth0.com/t/ionic5-capacitor-on-ios-does-not-redirect-to-app-after-success-login/68641/2 "2021-08-26T22:22:19Z")

</div>

I found the solution. I used the value of “appID” in both the Identifier field and the URL SCHEME field

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 27, 2021, 10:46am UTC](https://community.auth0.com/t/ionic5-capacitor-on-ios-does-not-redirect-to-app-after-success-login/68641/3 "2021-08-27T10:46:49Z")

</div>

Perfect! Thanks for sharing it with the rest of community!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 11, 2021, 10:46am UTC](https://community.auth0.com/t/ionic5-capacitor-on-ios-does-not-redirect-to-app-after-success-login/68641/4 "2021-09-11T10:46:56Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
