Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Ionic platform not returning IOS or Android

$
0
0

@manufao wrote:

Hi,

I am developing an app on Ionic 3 and like you can see above I have a problem with the command " console.log(‘android’, this.platform.is(‘android’)); "

When I run the cli “ionic serve -l”, I have no issue, if I switch between android and ios, I see true or false depending on the platform (the command .platforms() returns [“mobile”, “android”, “mobileweb”]), but when I run on my android device and I debug it I have “false” for my console.log and .platforms returns [“cordova”, “core”].

Do you have an idea why the android platform is not recognized ?

Thanks for your help
Manu

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>