Ionic.Platform.is() unexpected behavior


#1

I think there is something wrong with ionic.Platform.is(), org.apache.cordova.core.device is installed.

I tried the following
ionic.Platform.platforms => ["cordova", "ios", "ios7", "ios7"]

Then
ionic.Platform.is('cordova'); => false

Also note that ios7 is duplicated in the platform array, only ionic.Platform.is('ios') returns true.

P.S: The above was run using weiner's console connected to a real iPhone 4. I am also facing some problems with ionic.Platform.ready() but I will check it separately and report back.


#2

Reported at github issues.