Platform returns false for either ios or android

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.