Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ionic v4] ionic serve think the plataform is Android #14953

Closed
goelectricstations opened this issue Jul 31, 2018 · 4 comments
Closed

[ionic v4] ionic serve think the plataform is Android #14953

goelectricstations opened this issue Jul 31, 2018 · 4 comments
Labels

Comments

@goelectricstations
Copy link

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

Ionic:

ionic (Ionic CLI) : 4.0.1 (C:\Users\Computer\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

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : none

System:

NodeJS : v8.9.4 (C:\Program Files\nodejs\node.exe)
npm : 6.3.0-next.0
OS : Windows 10

Environment:

ANDROID_HOME : not set

insert the output from ionic info here

ionic serve think the plataform is Android when is with browser on windows computer, without any emulator

@ionitron-bot ionitron-bot bot added the triage label Jul 31, 2018
@brandyscarney
Copy link
Member

There aren't many details here, but I am assuming you're expecting windows mode instead of material design on a windows computer? We have removed the windows mode from v4. There are only two modes currently: ios and md (see the preview on the right): https://beta.ionicframework.com/docs/components#action-sheet

Material design (md) is the default for all browsers on desktop. More info on that in the theming docs: https://beta.ionicframework.com/docs/theming/platform-styles#ionic-modes

We've discussed adding in Windows fluent design but no development has started on it.

I'm going to close this as working as designed. Thanks!

@goelectricstations
Copy link
Author

@brandyscarney

import { Platform } from '@ionic/angular';
constructor(
public plt: Platform
) {

console.log(this.plt.is('android'));

}

this give me: this.plt.is('android')) --> true
when I use browser should be "core"?

@brandyscarney
Copy link
Member

Ah, yeah that is different. That's a bug we're tracking here: #15165

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 19, 2018

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant