Hi,
When i want to specify a platform using ionic serve using -t or --platform parameter, still show android platorm.
Hi,
When i want to specify a platform using ionic serve using -t or --platform parameter, still show android platorm.
How are you displaying the app? Mobile device view in your browser? User agent?
Also post your ionic info
output please.
I’m using it with chrome browser in windows with command ionic serve --platform ios
cli packages:
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
System:
Node : v7.0.0
npm : 3.10.8
OS : Windows 7
Run ionic info
in your project please. This is not enough information.
cli packages:
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
global packages:
Cordova CLI : not installed
Gulp CLI : CLI version 3.9.1 Local version 3.9.1
local packages:
@ionic/app-scripts : 2.1.4
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.6.0
System:
Node : v7.0.0
npm : 3.10.8
OS : Windows 7
This is outdated and should be upgraded. Maybe the current version fixes that already.
the command is correct ?
The one you are using? Yeah, looks like what the docs tell you it should look like.
I personally don’t use that but make my browser send a iPhone or Android user agent via the dev tools mobile view. This automatically makes the design switch on reload.
how to achive this ?
What exactly? Open the dev tools, select the mobile view, change the device.
Hi, @fabulous_fab
Please run ionic serve -l
and when your app open in browser in android platform at that time there is dropdown options on top right side for iphone and windows platform also
Hope this helpful
I’m having the same issue, I want to start in ios
version and not add to the url ?ionicplatform=ios
. It always starts in android mode running ionic serve --platform ios
or ionic serve -t ios
.
ionic info
cli packages: (/Volumes/HDD-750/Documents/projects/testxyz/node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.2
Cordova Platforms : android 6.3.0 ios 4.5.0
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
ios-deploy : 1.9.2
Node : v8.9.2
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
Environment Variables:
ANDROID_HOME : /Volumes/HDD-750/Library/Android/sdk
Misc:
backend : pro