2024 - 10 min. to build a free native iOS/Android app 🔷

Hello guys, so after hours of googling and help from jesonelle forum, I have been able to fix the Google aouth problem (403 useragent_disallowed)

So the problem google has with webview apps is security, that is why they block the service.
to solve that we need to assign a user agent.

  1. Update the index.jason file to the following;


    {
    “$jason”: {
    “body”: {
    “background”: {
    “type”: “html”,
    “url”: “https://www.YOUR-DOMAIN.com”,
    “options”: {
    “useragent”: “http.agent”
    },
    “action”: {
    “type”: “$default”
    }
    }
    }
    }
    }

  2. Replace “http.agent” with
    “Mozilla/5.0 (Linux; Android 7.0; SM-G930V Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.125 Mobile Safari/537.36”

  3. Replace the index file on your bubble app with the new one.

  4. In android studio, Search forJasonAgentService.java. Check to make sure it contains the following lines of code.


    if (options.has(“options”)) {
    // Allows custom user agent for the webview
    if (options.getJSONObject(“options”).has(“useragent”)) {
    Log.d(“Debug”, "Using custom user agent: " + options.getJSONObject(“options”).getString(“useragent”));
    settings.setUserAgentString(options.getJSONObject(“options”).getString(“useragent”));
    }
    }
    That’s it. your google oauth should work now… Happy bubbling

3 Likes