Sigve Kvalsvik created CB-9985:
----------------------------------
Summary: 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
Priority: Minor
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: [email protected]
For additional commands, e-mail: [email protected]