# Getting an unknown URL scheme error in Ionic 2

**URL:** <https://community.auth0.com/t/getting-an-unknown-url-scheme-error-in-ionic-2/7280>\
**Category:** Get Help\
**Tags:** ionic2\
**Created:** [June 27, 2017, 8:16am UTC](https://community.auth0.com/t/getting-an-unknown-url-scheme-error-in-ionic-2/7280 "2017-06-27T08:16:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctl.deg](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ctl.deg](https://community.auth0.com/u/ctl.deg)\
**Post date:** [June 27, 2017, 8:16am UTC](https://community.auth0.com/t/getting-an-unknown-url-scheme-error-in-ionic-2/7280/1 "2017-06-27T08:16:14Z")

</div>

I have a problem integrating Auth0 authentication into an Ionic 2 application. After login, my app stay in blank page with error: “Web page not available”.

Follow link of picture bellow:

[Imgur: The magic of the Internet](http://imgur.com/a/PRkkk)

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [July 19, 2017, 6:31pm UTC](https://community.auth0.com/t/getting-an-unknown-url-scheme-error-in-ionic-2/7280/2 "2017-07-19T18:31:57Z")

</div>

The error you mention is about an unknown URL scheme. If you follow the Ionic 2 [quickstart](https://auth0.com/docs/quickstart/native/ionic2/01-login) there are instructions on how to setup the `cordova-plugin-customurlscheme` plugin so that the custom URL scheme is handled by your application.

If you haven’t done that part correctly then no application is available to handle such custom URL scheme which would ultimately end with the error in question. I would recommend you to verify if you performed all the configuration required so that your application handles the custom scheme.

---

<div class="post-metadata">

**Author:** ![tom4](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tom4/32/7356_2.png) [@tom4](https://community.auth0.com/u/tom4)\
**Post date:** [October 17, 2017, 3:24pm UTC](https://community.auth0.com/t/getting-an-unknown-url-scheme-error-in-ionic-2/7280/3 "2017-10-17T15:24:44Z")

</div>

I get the same issue on specific android devices. It works normally on my LG android devices. But when deployed on my Samsung Android tablet it doesn’t redirect when having logged in. See the screen below that I get after logging on my devices

![alt text][1]

FYI, I have followed the instructions mentioned and it is correctly configured. It works on most devices (Android and iOS).

Devices used

- Galaxy Tab A (2016) SM-T280 (doesn’t work)  
Android version 5.1.1
- LG -D722 (works)  
Android version 5.0.2
- iPhone 5s (works)  
iOS version 11.0.3

---

<div class="post-metadata">

**Author:** ![tom4](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tom4/32/7356_2.png) [@tom4](https://community.auth0.com/u/tom4)\
**Post date:** [October 17, 2017, 3:33pm UTC](https://community.auth0.com/t/getting-an-unknown-url-scheme-error-in-ionic-2/7280/4 "2017-10-17T15:33:55Z")

</div>

@ctl.deg did you manage to solve it?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [October 17, 2017, 8:06pm UTC](https://community.auth0.com/t/getting-an-unknown-url-scheme-error-in-ionic-2/7280/5 "2017-10-17T20:06:37Z")

</div>

You may already went through this GH [issue](https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/117) which describes also an issue with Android 5.1.1 and to be honest even if you didn’t there’s not a definitive solution, but at least it has things to try to check for. If you can also share a minimal app that reproduces the issues that may help in troubleshooting (feel free to create your own question).

---

<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:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/getting-an-unknown-url-scheme-error-in-ionic-2/7280/6 "2018-03-02T05:54:59Z")

</div>


