You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/10/10 22:09:14 UTC

[GitHub] [cordova-plugin-device] mtamburro opened a new issue #108: iOS: deviceProperties method crashes when device is locked & data protection is set to "complete"

mtamburro opened a new issue #108: iOS: deviceProperties method crashes when device is locked & data protection is set to "complete"
URL: https://github.com/apache/cordova-plugin-device/issues/108
 
 
   # Bug Report
   
   There is no null checking when creating the dictionary in the deviceProperties method.
   
   ## Problem
   
   On the Apple developer portal, if you set "data protection" to "complete" for your App ID, and then call this method while your device is locked (e.g., in response to a push notification) some of the properties will be null and result in a crash.
   
   ### What is expected to happen?
   
   Null properties should not be inserted in to the dictionary, and the App should not crash.
   
   ### What does actually happen?
   
   The App crashes in the background every time.
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   An easy way to reproduce this is to turn off your device, then turn it on, but do not enter your passcode to unlock the device.  With your device in this state, send a push notification to your app that calls the deviceProperties method.
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   This was first noticed on iOS 13
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org