Google login error disallowed_useragent on Android RocketWeb

After buy, I configure the app properly and everything was working fine. But when I try to login my website with google login options then get an error message disallowed_useragent.

Solution for 1.3.6 or above:

<string name="user_agent_string">Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.0.0 Mobile Safari/537.36</string>

Solution for below 1.3.6:

First of all, make sure that you turn on JavaScript (JS). And with your ApplicaionID must update Firebase file. (Read doc you will found it.)

Then change this line and must test on a real device. Do not test it on your emulator.

Release userAgentString on HomeActivity.kt will solve the issue.

userAgentString = "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.0.0 Mobile Safari/537.36"
Update userAgentString

Leave a Reply