Ionic platform not returning IOS or Android

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