dpa99c / cordova-diagnostic-plugin

Cordova/Phonegap plugin to manage device settings
538 stars 361 forks source link

Requesting/checking motion access causes native app crash on <=iOS 9 on iOS devices with motion coprocessor #169

Closed dpa99c closed 7 years ago

dpa99c commented 7 years ago

Calling isMotionRequestOutcomeAvailable() or requestAndCheckMotionAuthorization() on a device with a motion coprocessor (iPhone 5S and above/iPad Air and above) causes a native crash if the device is running an old version of iOS (below iOS 10).

This is because the plugin calls CMPedometer.isPedometerEventTrackingAvailable() which was only introduced in iOS 10 SDK.

Affects v3.3.2 only.

dpa99c commented 7 years ago

Fixed by f1e69c2047874d6b61ca4ef604786874e05acaf5 and published in v3.3.3