Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIOS app for NS 7 crashes after user confirm photo #250
Comments
|
Still stuck with the issue. I had to bypass some code to make the plugin working. Here is my workaround.
This works. |
Environment
"nativescript": "^7.0.8",
"@nativescript/core": "^7.0.7",
"@nativescript/ios": "7.0.0",
"@nativescript/camera": "^5.0.0",
In a plain JS app, when taking a picture, the iOS version of the app crashes with the message " NativeScriptError: TypeError: Cannot read property 'creationDate' of undefined". The crash happens after taking the photo, when the user confirms the picture. The android version works without issues. The app was working fine before upgrading to NS 7.
To Reproduce
Inspecting the camera plugin code, the error happens in line 54:
Debugging, fetchResult.count is > 0 but asset is undefined (thus the error).