Open onetech-dev opened 7 months ago
Can you put Debug.Logs to see if the returned path is null?
Hi @yasirkula
Thank you for your reply!
"path" is not null. Full log: "Image path: /data/user/0/bundleID/cache/IMG_camera.jpg". I'm using Unity 2021.3.27f1.
I'm doubting the below lines:
Thanks! I'm doubting File.Exists(path)
returns false. Could you please check it?
Hello @yasirkula
First of all, thank you for the great plugin
When using NativeCamera.Permission permission = NativeCamera.TakePicture((path) => {...}, it open the device's camera. I took the picture below:
Click OK and device logs NullReferenceException. Full log: "NullReferenceException: Object reference not set to an instance of an object. EditProfileView.b__14_0 (System.String path) (at <00000000000000000000000000000000>:0)
NativeCameraNamespace.NCCameraCallbackAndroid.MediaReceiveCallback (System.String path) (at <00000000000000000000000000000000>:0)"
Is there something missing? Tested on Android (Galaxy S22, ver 14)
Thanks in advance.