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 2021/02/06 00:17:41 UTC

[GitHub] [cordova-plugin-contacts] skdavies opened a new issue #228: App Crash with iOS 14

skdavies opened a new issue #228:
URL: https://github.com/apache/cordova-plugin-contacts/issues/228


   # Bug Report
   
   ## Problem
   The app crashes after the permissions window appears and you click "allow." If you re-open the app, the permission is granted and you can access the contacts correctly. Has anyone else seen this or know any fixes/forks that address this?
   
   ### What is expected to happen?
   The app will not crash after allowing contact permissions.
   
   
   ### What does actually happen?
   It crashes.
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   I have set the NSContactsUsageDescription in Info.plist and see that when it prompts so I know that isn't the problem. From debugging the crash log there is an error that says: 
   `Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Call must be made on main thread'`
   
   I suspect this is a problem with the way the plugin is implemented not using the main thread 
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   The `pickContact` method being called for the first time in an app, causing the permissions window to appear. After accepting you should see the crash.
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   All iOS devices on version 14 (could have been happening earlier but I didn't notice it).
   
   
   ### 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.
   -->
   Cordova 10, cordova-plugin-contacts 3.0.1 (latest)
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] 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



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


[GitHub] [cordova-plugin-contacts] lukas2 commented on issue #228: App Crash with iOS 14

Posted by GitBox <gi...@apache.org>.
lukas2 commented on issue #228:
URL: https://github.com/apache/cordova-plugin-contacts/issues/228#issuecomment-786662343


   I have the same problem but it's a simple fix. See the PR.


----------------------------------------------------------------
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



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


[GitHub] [cordova-plugin-contacts] EinfachHans commented on issue #228: App Crash with iOS 14

Posted by GitBox <gi...@apache.org>.
EinfachHans commented on issue #228:
URL: https://github.com/apache/cordova-plugin-contacts/issues/228#issuecomment-776973678


   Can you check if you have this with my Contacts Plugin aswell? https://github.com/EinfachHans/cordova-plugin-contacts-x


----------------------------------------------------------------
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



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