vkeepe / card.io

Scan Credit Card Number - iOS & Android Cordova plugin
Other
32 stars 23 forks source link

Issues with iOS 10 / Cordova build. #11

Open Rjak opened 7 years ago

Rjak commented 7 years ago

This plugin has worked brilliantly for us so far. Unfortunately our latest build with Cordova 6.3.1 and Xcode 8, deploying to iOS 10, is having problems.

First we had to get past a problem where invoking window.CardIO.scan would result in the script engine infinitely complaining about refusing to load gap://ready. This was easy to overcome by adding gap: to our Content-Security-Policy tag.

Now when we invoke window.CardIO.scan the app crashes.

Will continue to analyze, please let me know if there is anything I can do to help.

Rjak commented 7 years ago

Sorry, I was not paying attention to the crash details in Xcode. iOS was killing the app because the app did not have an NSCameraUsageDescription key in the Resources/xxx-Info.plist file. Because of this, it was unable to present the user with a permission request dialog. Adding that key in Xcode fixes the problem.