# Declare user-agent in web\_viewer

**URL:** <https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372>\
**Category:** Questions about Thunkable X\
**Created:** [August 28, 2021, 3:17am UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372 "2021-08-28T03:17:33Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![farmershubbysheg](https://avatars.discourse-cdn.com/v4/letter/f/6bbea6/32.png) [@farmershubbysheg](https://community.thunkable.com/u/farmershubbysheg)\
**Post date:** [August 28, 2021, 3:17am UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/1 "2021-08-28T03:17:33Z")

</div>

I already search the community and still just found 4 or 5 post related but not what exactly I was needed…  
Is there any method to set or declare user-agent string for the webviewer? I turn my website into an app here and it has a google login method…

here some screenshots

 ![photo_2021-08-27_20-14-50](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/f/2f4b011bccea41246cc2108e3f5be8e9d3dd8085.jpeg)

And this when you click google login

 ![photo_2021-08-27_20-14-51](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/e/8e3d25d860c87271546bc2817b386755c3e7802b.jpeg)

I know the only solution to this is to set a user-agent string to the webviewer, but dont know where and how.  
Note: My app is for iOS only

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [August 28, 2021, 4:19am UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/2 "2021-08-28T04:19:50Z")

</div>

you should try firebase authentication.

 ![Screenshot 2021-08-26 112332](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/d/ad2c33286405c901cfb06faac466a4ad0ba6150b.png)  
A user agent is simple. 🧐 agent assist agent (similar to dialog-flow agent) is a user simple-agent for beginners, it’s pretty hard though first go to the [agent assist console](https://agentassist.cloud.google.com/projects) you should select the provided name for your firebase project. you should select the conversation profiles to `google_users.apps.auth+20%firebase20%` and other plat forms you use for your app  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/8/287d603df6e22d8e5a08c97d2c613c784b714fd6.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/8/1814ce3d59923c5a2d43cbdb1a08454eaeb39d82.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/7/b7b58acf002a15a1ece89d9652c5ea77e4aa9a57.png)

---

<div class="post-metadata">

**Author:** ![farmershubbysheg](https://avatars.discourse-cdn.com/v4/letter/f/6bbea6/32.png) [@farmershubbysheg](https://community.thunkable.com/u/farmershubbysheg)\
**Post date:** [August 28, 2021, 6:00am UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/3 "2021-08-28T06:00:01Z")

</div>

Hi thank you for your help. My website google login don’t use Firebase Auth, I was using google libraries using PHP, but i’ll try to explore this agent assist…

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [August 28, 2021, 8:07am UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/4 "2021-08-28T08:07:30Z")

</div>

You are talking about HTTP user-agent and he is talking about the “agent” in the Diagflow assistant which are two different things.

The `web viewer` is actually, I think, an `iFrame` component and you need to see a way to change the header of the parent window if possible or force a different user-agent from the `web viewer` itself.

There isn’t enough information in this subject so the only way is to try it yourself.

**[Edit]**

See this post, it may give you an idea

> [@Google, Facebook and GitHub Sign In/Up](https://community.thunkable.com/t/google-facebook-and-github-sign-in-up/1275290):
>
> Hello all, For a while now I’ve been working on better ways to sign users in using 3rd Party Services. However, with firebase hosting and a lot of time spent coding I have finished working on this demo app. The logic is pretty simple. I used firebase hosting to provide a login and hosting system. The website waits for the app to tell it to load the login screen. Then it sends the stringified data back to the app. There are three methods of logging in. Google, Facebook, and GitHub. I am still wo…

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [August 30, 2021, 6:30am UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/6 "2021-08-30T06:30:03Z")

</div>

I believe you need to behave and use good words and stop being offensive.

> [@vishruth-ram](#):
>
> That sucks that power thunkers are only experts of thunking.  
> @muneer **agent assist** is not as you expect.

The inquiry is about the HTTP **user-agent** not about the **agent assistant** that you keep mentioning everywhere as if you made a breakthough in Thunkable.

For any information about **agent assistant** you can refer to Thunkable documentation  
[https://docs.thunkable.com/assistant](https://docs.thunkable.com/assistant)

Thunkable has a component that integrates to the Google Assistant with the setup steps that are indicated in the documentation and the use of this component.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/4/f40bb756ec1a55a976abc5c8daa4e2dc55c01315.png)

I hope you stop acting this way and realize you are part of a **decent community with moral principles**.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [August 30, 2021, 6:51am UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/8 "2021-08-30T06:51:49Z")

</div>

@vishruth-ram  
**Please please please** read the post and STOP answering before reading.

The post is about **USER-AGENT**. It is not about you favorite topic **assistant**.

Can you please try to understand, you might have valuable information about **assistant** but this **TOPIC** has nothing to do with the **assistant**.

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [August 30, 2021, 6:53am UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/9 "2021-08-30T06:53:51Z")

</div>

arh! that means you didn’t see what @farmershubbysheg seen.

> [@vishruth-ram](#):
>
> for firebase auth it will be:
> 
> ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/0/6032c0cb1c592ca2ca8e3fd3e5900d80024421ea.png)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [August 30, 2021, 7:00am UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/10 "2021-08-30T07:00:43Z")

</div>

@vishruth-ram  
Again, What this reply had to do with the **TOPIC**? There is a **user-agent** and there is a **web viewer**

**Declare user-agent in web\_viewer**

Can you please get **focused**?

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [August 30, 2021, 7:11am UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/11 "2021-08-30T07:11:13Z")

</div>

hmmm. ok, it said there are no `user_agent` on this server, which means @farmershubbysheg should use firebase authentication. you’re right but

_Poll ([view on site](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/11))_

…A user agent is any software that retrieves and presents web content .

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [August 30, 2021, 7:39am UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/12 "2021-08-30T07:39:37Z")

</div>

Go to [this site](http://www.whatismyuseragent.net/) to get more info

Or [this site](https://www.whatismybrowser.com/detect/what-is-my-user-agent) to learn about your **user-agent**.

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [August 30, 2021, 7:43am UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/13 "2021-08-30T07:43:01Z")

</div>

hey, I already know what is it, kidding me is not supported in the main forum.we’ll call @domhnallohanlon to this solved.

---

<div class="post-metadata">

**Author:** ![alanglade](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/alanglade/32/104771_2.png) [@alanglade](https://community.thunkable.com/u/alanglade)\
**Post date:** [September 25, 2021, 2:43am UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/14 "2021-09-25T02:43:27Z")

</div>

Hello @farmershubbysheg,

I am facing the exact same issue, did you finally find a solution?

Cheers

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [September 25, 2021, 11:26am UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/15 "2021-09-25T11:26:16Z")

</div>

> [@alanglade](#):
>
> find a solution

here

> [@vishruth-ram](#):
>
> A user agent is any software that retrieves and presents web content .

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:17pm UTC](https://community.thunkable.com/t/declare-user-agent-in-web-viewer/1473372/16 "2024-11-08T13:17:01Z")

</div>


