# Mobile Device Identification

**URL:** <https://forum.inductiveautomation.com/t/mobile-device-identification/13958>\
**Category:** Ignition\
**Created:** [March 31, 2017, 2:45pm UTC](https://forum.inductiveautomation.com/t/mobile-device-identification/13958 "2017-03-31T14:45:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Caleb\_Bohon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caleb_bohon/32/3293_2.png) [@Caleb\_Bohon](https://forum.inductiveautomation.com/u/Caleb_Bohon)\
**Post date:** [March 31, 2017, 2:45pm UTC](https://forum.inductiveautomation.com/t/mobile-device-identification/13958/1 "2017-03-31T14:45:15Z")

</div>

Is there anyway to identify what type of device a person is using when they open a mobile project?

I have some users who primarily use tablets (iPad) instead of computers, and I would like my mobile project (for phones) to have some more detailed screens that can open up on a tablet instead of the phone screens.

So when the user navigates to a screen it automatically gives them a phone screen if they have a phone but a tablet screen if a tablet.

I looked at system.gui.getScreens() but it seems to return the same value on both my iPad and iPhone.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 31, 2017, 3:05pm UTC](https://forum.inductiveautomation.com/t/mobile-device-identification/13958/3 "2017-03-31T15:05:18Z")

</div>

Your best bet would be the SYstem/Mobile/UserAgent string tag. I’m not sure if iOS/Safari actually has different user agents for iPhone/iPad/etc, but that’s pretty much the only way the browser knows anything about the device. Screen size comparisons unfortunately won’t work due to the way the mobile module functions (technically, it’s a client running on the gateway server).

---

<div class="post-metadata">

**Author:** ![Caleb\_Bohon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caleb_bohon/32/3293_2.png) [@Caleb\_Bohon](https://forum.inductiveautomation.com/u/Caleb_Bohon)\
**Post date:** [March 31, 2017, 3:25pm UTC](https://forum.inductiveautomation.com/t/mobile-device-identification/13958/4 "2017-03-31T15:25:47Z")

</div>

That looks workable.

I didn’t know that location data (for mobile) was all available to Ignition.  
I have some interesting ideas for what to do with that…

---

<div class="post-metadata">

**Author:** ![Caleb\_Bohon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caleb_bohon/32/3293_2.png) [@Caleb\_Bohon](https://forum.inductiveautomation.com/u/Caleb_Bohon)\
**Post date:** [April 11, 2017, 11:23pm UTC](https://forum.inductiveautomation.com/t/mobile-device-identification/13958/5 "2017-04-11T23:23:22Z")

</div>

Well, I can’t see any actual info when I bind the location data on a screen.

Using iPhone 7 with iOS 10. Safari. I wonder if I’m missing a security setting or something.

I’ll have to play with this some later…
