# Auth0 not working when deployed to android studio

**URL:** <https://community.auth0.com/t/auth0-not-working-when-deployed-to-android-studio/79719>\
**Category:** Get Help\
**Tags:** auth0, ionic\
**Created:** [March 11, 2022, 12:40pm UTC](https://community.auth0.com/t/auth0-not-working-when-deployed-to-android-studio/79719 "2022-03-11T12:40:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![info47](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/info47/32/33258_2.png) [@info47](https://community.auth0.com/u/info47)\
**Post date:** [March 11, 2022, 12:40pm UTC](https://community.auth0.com/t/auth0-not-working-when-deployed-to-android-studio/79719/1 "2022-03-11T12:40:34Z")

</div>

Please include the following information in your post:

- **Which SDK this is regarding:** e.g. auth0-node  
auth0 ionic react
- **SDK Version:** e.g. 2.29.0  
ionic-react 5 with capacitor
- **Platform Version:** e.g. Node 12.19.0  
node v14
- **Code Snippets/Error Messages/Supporting Details/Screenshots:**

```auto
import { isPlatform } from "@ionic/react";

export const domain = "dev-0b0ndcfd.us.auth0.com";
export const clientId = "f5VvN1hqFOfbT9hECQz17M5wm4n33mqQ";
//const appId = "com.auth0.samples";
const appId = "com.receipt.manager";
// Use `auth0Domain` in string interpolation below so that it doesn't
// get replaced by the quickstart auto-packager
const auth0Domain = domain;
const iosOrAndroid = isPlatform('ios') || isPlatform('android');

//com.auth0.samples://dev-0b0ndcfd.us.auth0.com/capacitor/com.auth0.samples/callback

export const callbackUri = iosOrAndroid 
  ? `${appId}://${auth0Domain}/capacitor/${appId}/callback`
  : `http://localhost:8100/Landing/`;

console.log(callbackUri)
  export async function callback() {
  }

```

**Is this a feature request or bug report?** If so, please create an issue directly in the corresponding GitHub repo. The Community SDK category is for general discussion and support.

I am able to run this on local but on android studio I get the following

2022-03-11 12:21:32.130 30826-30826/com.android.chrome I/chromium: [INFO:CONSOLE(0)] “Navigation is unreachable: com.receipt.manager://dev-0b0ndcfd.us.auth0.com/capacitor/com.receipt.manager/callback?code=9xEdhOaIEkgbxn-ZPMNVta0CNjJxJYOB9nYZyzu0emO61&state=dHkxYzNqajR5ZEtYZ1gua0pEY09TVUkzQVhfMzVYdFVCb0VpLVRhTWVPRg%3D%3D”, source: (0)

Anyone seen this before?  
Please see my capacitor.config.json is as follows

```auto
{
	"appId": "com.receipt.manager",
	"appName": "receipt-manager",
	"webDir": "build",
	"bundledWebRuntime": false
}

```

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 12, 2022, 12:00am UTC](https://community.auth0.com/t/auth0-not-working-when-deployed-to-android-studio/79719/4 "2022-03-12T00:00:42Z")

</div>

Hey there @info47, welcome to the community!

> [@info47](#):
>
> Anyone seen this before?

We have seen this before, and in the past it was related to the `appID` being misconfigured in the app’s `AndroidManifest.xml` - Can you confirm the `appID` you have set in your config file above matches what’s set for your `android:scheme`?

Additionally, have you had a chance to check out our sample app(s)? I am testing with [this sample](https://github.com/auth0-samples/auth0-ionic-samples/tree/main/react) and everything seems to work as expected. I’d be curious to know if you run into the same issue there.

Keep us posted!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 27, 2022, 12:00am UTC](https://community.auth0.com/t/auth0-not-working-when-deployed-to-android-studio/79719/5 "2022-03-27T00:00:53Z")

</div>

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