# Callback never handled for Ionic app using Auth0 SDK

**URL:** <https://community.auth0.com/t/callback-never-handled-for-ionic-app-using-auth0-sdk/82799>\
**Category:** Get Help\
**Tags:** login, auth0\
**Created:** [May 3, 2022, 2:14pm UTC](https://community.auth0.com/t/callback-never-handled-for-ionic-app-using-auth0-sdk/82799 "2022-05-03T14:14:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremie.poisson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeremie.poisson/32/33711_2.png) [@jeremie.poisson](https://community.auth0.com/u/jeremie.poisson)\
**Post date:** [May 3, 2022, 2:14pm UTC](https://community.auth0.com/t/callback-never-handled-for-ionic-app-using-auth0-sdk/82799/1 "2022-05-03T14:14:01Z")

</div>

- Which SDK this is regarding: auth0-angular
- SDK Version: 1.9.0
- Platform Version: IOS / Android (Ionic)

Hi,

We are implementing Auth0 authentication to an Mobile application that runs Ionic Angular. We are trying to authenticate from Azure AD.

We are bypassing the universal login using the connection parameter inside the SDK (passed in GET /authorize) and everthing is fine until here.

After authenticated from Azure, we are redirected to our app (Redirect URI : [http://localhost:4200](http://localhost:4200)) but as written in the documentation ([Auth0 Ionic & Capacitor (Angular) SDK Quickstarts: Login](https://auth0.com/docs/quickstart/native/ionic-angular/01-login)) we should handle the callback by using the App plugin and the even ‘appUrlOpen’ but this one never seems to occur.

To verify this we put a log before and just after the line `App.addListener('appUrlOpen', ({ url }) => {` but we never enter this.

Has anyone encountered this issue or know what’s causing it ?

---

<div class="post-metadata">

**Author:** ![leydar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/leydar/32/12715_2.png) [@leydar](https://community.auth0.com/u/leydar)\
**Post date:** [July 21, 2022, 3:37pm UTC](https://community.auth0.com/t/callback-never-handled-for-ionic-app-using-auth0-sdk/82799/3 "2022-07-21T15:37:35Z")

</div>

Hi, your redirect URI should be

```auto
YOUR_PACKAGE_ID://YOUR_DOMAIN/capacitor/YOUR_PACKAGE_ID/callback

```

This must be in your Allowed Callbacks in your auth0 settings and in your AuthModule import parameters in your app.component.ts file. It should be similar to launching your app from a deep link.

---

<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:** [November 1, 2022, 9:02pm UTC](https://community.auth0.com/t/callback-never-handled-for-ionic-app-using-auth0-sdk/82799/4 "2022-11-01T21:02:20Z")

</div>

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