# Platform returns false for either ios or android

**URL:** <https://forum.ionicframework.com/t/platform-returns-false-for-either-ios-or-android/232848>\
**Category:** Ionic Framework\
**Created:** [April 19, 2023, 11:10am UTC](https://forum.ionicframework.com/t/platform-returns-false-for-either-ios-or-android/232848 "2023-04-19T11:10:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markokit](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@markokit](https://forum.ionicframework.com/u/markokit)\
**Post date:** [April 19, 2023, 11:10am UTC](https://forum.ionicframework.com/t/platform-returns-false-for-either-ios-or-android/232848/1 "2023-04-19T11:10:53Z")

</div>

I do need to implement some logics based on the platform on which the mobile applications runs on. Whenever I install mobile application either to iOS or Android mobile device, my platforms native plugins returns false for either iOS or Android, based on the use-case.

Platform `platform.platforms()` method does not return iOS or Android so I can not write some custom logics based on the condition either.

I do appreciate for any kind of help provided.

---

<div class="post-metadata">

**Author:** ![Hills90210](https://avatars.discourse-cdn.com/v4/letter/h/57b2e6/32.png) [@Hills90210](https://forum.ionicframework.com/u/Hills90210)\
**Post date:** [April 19, 2023, 1:35pm UTC](https://forum.ionicframework.com/t/platform-returns-false-for-either-ios-or-android/232848/2 "2023-04-19T13:35:14Z")

</div>

> **[JavaScript Utilities | Capacitor Documentation](https://capacitorjs.com/docs/v2/basics/utilities#getplatform)**
>
> Capacitor's JavaScript Utilities
