# Getting disallowed\_useragent error with Android Lock

**URL:** <https://community.auth0.com/t/getting-disallowed-useragent-error-with-android-lock/6818>\
**Category:** Get Help\
**Tags:** google, android-lock\
**Created:** [May 31, 2017, 11:18pm UTC](https://community.auth0.com/t/getting-disallowed-useragent-error-with-android-lock/6818 "2017-05-31T23:18:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_McNiven-Scott](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/steve_mcniven-scott/32/6579_2.png) [@Steve\_McNiven-Scott](https://community.auth0.com/u/Steve_McNiven-Scott)\
**Post date:** [May 31, 2017, 11:18pm UTC](https://community.auth0.com/t/getting-disallowed-useragent-error-with-android-lock/6818/1 "2017-05-31T23:18:22Z")

</div>

I see this issue in the forum here but it’s always related to cordova or xamarin… so similar but different?

On Android I’m using the `com.auth0.android:lock:2.+` dependency and getting the `disallowed_useragent` error when doing Google authentication, is there something else I should be doing\using?

Code being used:

[https://github.com/sitefinitysteve/nativescript-auth0/blob/master/auth0.android.ts](https://github.com/sitefinitysteve/nativescript-auth0/blob/master/auth0.android.ts)

---

<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:** [June 1, 2017, 6:14pm UTC](https://community.auth0.com/t/getting-disallowed-useragent-error-with-android-lock/6818/2 "2017-06-01T18:14:38Z")

</div>

If you’re already using the latest version of Lock Android then by default it will ask to use the OS browser instead of a WebView which will not trigger the error.

I was only able to reproduce this situation if you explicitly use the `useBrowser(false)` option to force the use of a WebView. However, if you do this Google will then complain given their decision to not support WebView for authentication purposes so you can’t force that option.

---

<div class="post-metadata">

**Author:** ![Steve\_McNiven-Scott](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/steve_mcniven-scott/32/6579_2.png) [@Steve\_McNiven-Scott](https://community.auth0.com/u/Steve_McNiven-Scott)\
**Post date:** [June 1, 2017, 8:36pm UTC](https://community.auth0.com/t/getting-disallowed-useragent-error-with-android-lock/6818/3 "2017-06-01T20:36:28Z")

</div>

Hmmm, I dont seem to be doing any of that 😕

[https://github.com/sitefinitysteve/nativescript-auth0/blob/master/auth0.android.ts](https://github.com/sitefinitysteve/nativescript-auth0/blob/master/auth0.android.ts)

Is it something in the manifest maybe?  
[https://github.com/sitefinitysteve/nativescript-auth0/blob/master/demo/app/App\_Resources/Android/AndroidManifest.xml](https://github.com/sitefinitysteve/nativescript-auth0/blob/master/demo/app/App_Resources/Android/AndroidManifest.xml)

---

<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-disallowed-useragent-error-with-android-lock/6818/4 "2018-03-02T05:54:14Z")

</div>


