[ https://issues.apache.org/jira/browse/CB-9985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15052387#comment-15052387 ]
Vladimir Kotikov commented on CB-9985: -------------------------------------- [~sigvekvals...@gmail.com], sorry, but i can't reproduce this problem (). From what i see, there is no logic behind {{platform}} property on iOS, it just [returns a constant|https://github.com/apache/cordova-plugin-device/blob/master/src/ios/CDVDevice.m#L81], so i think the issue is more general than just missing property of 'device' object. I suspect that you might be running into CB-9976, which has been fixed in cordova@5.4.1, so first try to upgrade your cordova version. > device.platform returns null on iOS > ----------------------------------- > > Key: CB-9985 > URL: https://issues.apache.org/jira/browse/CB-9985 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Device > Affects Versions: 5.4.0 > Environment: OSX, iOS > Reporter: Sigve Kvalsvik > Assignee: Vladimir Kotikov > Priority: Minor > Labels: cannot-reproduce, iOS, triaged > > I'm in the process of testing a cordova app on iOS using Testflight, but I'm > having an issue with the device plugin. While it works fine in the XCode > simulators as well as on a physical device when installed via XCode, the > versions downloaded from Testflight all return device.platform = null. On > Android it also works fine. > I've worked around it by testing for device.platform !== "Android" instead of > doing device.platform === "iOS", but I would prefer to have the plugin work > as expected. Any ideas what's going on here? > cordova-plugin-device 1.0.1 "Device" > Installed platforms: android 4.1.1, ios 3.9.2 -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org