Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Platform is not 'cordova' on device #515

@ghost

Description

With update to 0.0.42, this.platform.is('cordova') is returning false on a device.

I expect it to return true.

Steps to reproduce:

  1. Update ionic-app-scripts to version 0.0.42 or above.
  2. Run any ionic2 app with ionic run (ios or android) --device -lc
  3. Look at the list of platforms returned by the platform instance => console.log(this.platform.platforms());
  4. You will see something like this in ios => ["mobile", "ios", "iphone", "phablet", "mobileweb"] and this in android => ["mobile", "android", "mobileweb"]

Previously it used include "cordova" as well. This is very frustrating especially that it's not documented anywhere.

Here are my dev environment versions:


Your system information:

Cordova CLI: 6.4.0 
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.14
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.46
ios-deploy version: 1.9.0 
ios-sim version: 5.0.12 
OS: macOS Sierra
Node Version: v7.2.0
Xcode version: Xcode 8.1 Build version 8B62

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions