# \[Solved\] How can I let my web app know the kind of device type it’s running on?

**URL:** https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971
**Category:** Questions about Thunkable X
**Created:** [May 18, 2022, 6:17pm UTC](https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971 "2022-05-18T18:17:06Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)
#### Post date: [May 18, 2022, 6:17pm UTC](https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971/1 "2022-05-18T18:17:06Z")

</div>

Just want something simple like this, but I want it to work on a published web app.  
Currently if I open this on my iPhone or Android phone it always just says Unknown.

Thanks for any help

 ![Screen Shot 2022-05-18 at 1.14.54 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/7/0794f99c84c07121d3de2b2c2d05c49bc9be482b.png)

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [May 18, 2022, 6:21pm UTC](https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971/2 "2022-05-18T18:21:05Z")

</div>

Do you need it to look’/function different based on being a web app on either. iOS or android?

---

<div class="post-metadata">

### Author: ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)
#### Post date: [May 18, 2022, 6:38pm UTC](https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971/3 "2022-05-18T18:38:11Z")

</div>

No it’s just going to forward properly to either the Google Play store or the iOS App Store depending on the platform they’re using

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [May 18, 2022, 6:43pm UTC](https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971/4 "2022-05-18T18:43:59Z")

</div>

Might have to default to 2 buttons for now.

---

<div class="post-metadata">

### Author: ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)
#### Post date: [May 18, 2022, 7:01pm UTC](https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971/5 "2022-05-18T19:01:01Z")

</div>

Ultimately my goal was to create 1 QR code for customers to scan and the link auto send them to the appropriate app.

Is there some other method to make this happen?

---

<div class="post-metadata">

### Author: ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)
#### Post date: [May 18, 2022, 7:09pm UTC](https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971/6 "2022-05-18T19:09:19Z")

</div>

Surely there’s a simple http method to determine this, just needs to know if it’s android or iOS for now

---

<div class="post-metadata">

### Author: ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)
#### Post date: [May 18, 2022, 7:25pm UTC](https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971/7 "2022-05-18T19:25:31Z")

</div>

I think I’m going to use [whatsmyos.com](http://whatsmyos.com) and just look for text “android” or “iOS” and go from there

---

<div class="post-metadata">

### Author: ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)
#### Post date: [May 18, 2022, 8:23pm UTC](https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971/8 "2022-05-18T20:23:55Z")

</div>

I’m seeing if I use the web API to do this it tells me my OS is Darwin

---

<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: [May 18, 2022, 8:35pm UTC](https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971/9 "2022-05-18T20:35:44Z")

</div>

Create a Firebase Dynamic link.

It will automatically transfer users to the correct store to install the app.

[https://firebase.google.com/docs/dynamic-links/operating-system-integrations](https://firebase.google.com/docs/dynamic-links/operating-system-integrations)

---

<div class="post-metadata">

### Author: ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)
#### Post date: [May 18, 2022, 8:47pm UTC](https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971/10 "2022-05-18T20:47:34Z")

</div>

Thanks, I found this video you’ve posted in the past.  
But I’m not getting quite the exact same steps as in the video, I get to a point where I’m supposed to verify ownership of web.app domain, and of course I don’t so I get this information.

 ![Screen Shot 2022-05-18 at 3.41.19 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/b/ebd1f5ab71074f7413ebf9fa3f54b2bd995d14e4.jpeg)

[![](https://img.youtube.com/vi/YBGKT6W4vyg/maxresdefault.jpg "Up and Running with Firebase Dynamic Links (from Google URL Shortener)") ](https://www.youtube.com/watch?v=YBGKT6W4vyg)

---

<div class="post-metadata">

### Author: ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)
#### Post date: [May 18, 2022, 10:08pm UTC](https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971/11 "2022-05-18T22:08:19Z")

</div>

I got passed this section, you have to use the Google provided links by typing something unique such as `mylink`.page.link and just replace mylink with whatever you want.  
There’s a possibility your first choice will be taken just append it with 1 or whatever and it’ll probably work.

Now I’ve added my apps from each store to the dynamic link.

At the end it asks you if you want to `Skip the app preview page (not recommended)`

I chose to skip that because I didn’t like the preview page that appears before going to the App Store, instead my link just forwards directly to the App Store.

I’ve also created a QR code out of it with the client’s logo.

Thanks all for the help

---

<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: [May 19, 2022, 7:04am UTC](https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971/12 "2022-05-19T07:04:28Z")

</div>

That’s great.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [August 17, 2022, 7:04am UTC](https://community.thunkable.com/t/solved-how-can-i-let-my-web-app-know-the-kind-of-device-type-it-s-running-on/1882971/13 "2022-08-17T07:04:33Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
