# Platform.is('mobileweb) not working

**URL:** <https://forum.ionicframework.com/t/platform-is-mobileweb-not-working/91282>\
**Category:** ionic-v3\
**Created:** [May 22, 2017, 1:07pm UTC](https://forum.ionicframework.com/t/platform-is-mobileweb-not-working/91282 "2017-05-22T13:07:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Doe](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@John\_Doe](https://forum.ionicframework.com/u/John_Doe)\
**Post date:** [May 22, 2017, 1:07pm UTC](https://forum.ionicframework.com/t/platform-is-mobileweb-not-working/91282/1 "2017-05-22T13:07:52Z")

</div>

Hi,  
I have run the web app on Browser platform an used the localhost ip to run the app in the mobile browser on the smartphone but it does not detect [platform.is](http://platform.is)('mobileweb) it always gives me false.

Any ideas on how to detect if the web app is running on mobile browser on a tablet ore on a smartphone?

---

<div class="post-metadata">

**Author:** ![hmtylmz](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@hmtylmz](https://forum.ionicframework.com/u/hmtylmz)\
**Post date:** [May 22, 2017, 1:30pm UTC](https://forum.ionicframework.com/t/platform-is-mobileweb-not-working/91282/2 "2017-05-22T13:30:02Z")

</div>

You can use device native plugin. I guess you can check with this.device.platform == “browser”.

> **[Ionic Framework](https://ionicframework.com/docs/native/device/)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

  

> **[apache/cordova-plugin-device](https://github.com/apache/cordova-plugin-device#user-content-deviceplatform)**
>
> cordova-plugin-device - Mirror of Apache Cordova Plugin device
