# Phonegap callback url error

**URL:** <https://community.auth0.com/t/phonegap-callback-url-error/8799>\
**Category:** Get Help\
**Tags:** phonegap, callback-urls\
**Created:** [November 21, 2017, 11:36pm UTC](https://community.auth0.com/t/phonegap-callback-url-error/8799 "2017-11-21T23:36:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cedricodera](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@cedricodera](https://community.auth0.com/u/cedricodera)\
**Post date:** [November 21, 2017, 11:36pm UTC](https://community.auth0.com/t/phonegap-callback-url-error/8799/1 "2017-11-21T23:36:47Z")

</div>

I am getting an error after I log in with the Hosted Login Pages on my phonegap application. The error is ‘The web page at [https://myautho.auth0.com/login/callback](https://myautho.auth0.com/login/callback) could not be loaded because net::ERR\_UNSAFE\_REDIRECT’. This happens to username and password and also social log ins. My call back url as in the tutorial is , [https://myautho.auth0.com/mobile](https://myautho.auth0.com/mobile) and file:///android\_asset/www/index.html.

---

<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:** [November 24, 2017, 12:28am UTC](https://community.auth0.com/t/phonegap-callback-url-error/8799/2 "2017-11-24T00:28:25Z")

</div>

I’m assuming you’re referring to the Phonegap [quickstart](https://auth0.com/docs/quickstart/native/phonegap/01-login), if that’s the case then the only callback URL mentioned in it would be `https://[your_domain].auth0.com/mobile`. I did not find any mention of using `file:///android_asset/www/index.html` as a callback URL; it does mention using `file://\*` in CORS allowed origing, but not on callback URL’s. Another point is that the quickstart in question is community maintained and I have some doubts about if it’s strictly up to date as my expectation would be that it should be using something based on `auth0-cordova` [library](https://github.com/auth0/auth0-cordova).

---

<div class="post-metadata">

**Author:** ![ibabic](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ibabic](https://community.auth0.com/u/ibabic)\
**Post date:** [February 15, 2018, 6:05am UTC](https://community.auth0.com/t/phonegap-callback-url-error/8799/3 "2018-02-15T06:05:30Z")

</div>

Hi @jmangelo! I’m having problems with the phonegap login and right now the quickstart([Auth0 Native/Mobile App Quickstarts](https://auth0.com/docs/quickstart/native/phonegap)) returns 404! I would love to see that back up again.  
Thanks

---

<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:57am UTC](https://community.auth0.com/t/phonegap-callback-url-error/8799/4 "2018-03-02T05:57:30Z")

</div>


