ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.07k stars 13.51k forks source link

ionic v4 platform specify like ionic v3 #15051

Closed windwp closed 6 years ago

windwp commented 6 years ago

Feature Request

this.platform.ready().then(() => { console.log(this.platform.platforms()); })

In ionic v4 :

When I run it in chrome desktop browser and chrome mobile browser it always displays ["android"]

In ionic v3 :

If i run in chrome desktop it will displays ["core"] and in chrome mobile browser it will display  ["mobile", "android", "mobileweb"]

Ionic Info Run ionic info from a terminal/cmd prompt and paste the output below.

   ionic (Ionic CLI)          : 4.0.3 (C:\Users\Admin\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.0
   @angular-devkit/core       : 0.7.0-rc.3
   @angular-devkit/schematics : 0.7.0-rc.3
   @angular/cli               : 6.0.8
   @ionic/ng-toolkit          : 1.0.0
   @ionic/schematics-angular  : 1.0.1
bgies commented 6 years ago

When I run it in the chrome desktop (on windows) I get [android,tablet]

brandyscarney commented 6 years ago

Thank you for the issue! I am going to close this issue and merge it into #15165 to keep all platform issues in one.

ionitron-bot[bot] commented 6 years ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.