ionic.Platform.is() unexpected behavior
From forums
I think there is something wrong with
ionic.Platform.is(),org.apache.cordova.core.deviceis installed. I tried the followingionic.Platform.platforms=>["cordova", "ios", "ios7", "ios7"]Thenionic.Platform.is('cordova');=>false, Also note that ios7 is duplicated in the platform array, onlyionic.Platform.is('ios')returnstrue. P.S: The above was run usingweiner's console connected to a real iPhone 4. I am also facing some problems withionic.Platform.ready()but I will check it separately and report back.
Could you describe what you expect the ionic.Platform.is() to do?
These are the tests we currently have setup for the function: https://github.com/driftyco/ionic/blob/master/js/ext/angular/test/service/ionicPlatform.unit.js
I was expecting that it returns true on the cordova too, as it's available in the platforms array. Also note the duplicate in the array for ios7.
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.