@ktpttd Perhaps the native camera app has a built-in timeout there. Confirming or rejecting the picture in the confirmation screen does work flawlessly I hope.
Thank you. I figured it out. It depends on each different device.
First of all, thank you!!!
My iOS application is locked to landscape, but when using the camera the photo can be taken landscape, or portrait.
Do you know if it is possible to also lock the orientation of the native Camera to landscape only?
Thanks
@samjoly I don’t remember seeing a native property for this, especially on Android. On iOS, trying the native solutions that come up with “uiimagepickercontroller restrict camera orientation” search might help, if there’s such feature.
First of all, thank you for this plugin.
after taking the picture, there is Retake and Use Photo menu comes up. is there any to skip this. ? any idea ?
Thanks
@GamePro Unfortunately not: Any way to disable "retry" screen after taking the photo and go straight back to unity? · Issue #23 · yasirkula/UnityNativeCamera · GitHub
Hi, how to request permission for mic on iOS?
Your GitHub page describes how to set a request message for that, but no code provided to make a request. With an example code, the app doesn’t request microphone permission
@makaka-org Yes you’re right, the microphone permission is currently asked by the operating system automatically when the camera is opened for the first time. On another plugin of mine, I’ve recently added support for querying and requesting microphone permission, though it’s connected to another permission in that plugin (two permissions are asked at the same time). You could inspect the linked native code and try to extract its relevant parts into your own native method for asking the microphone permission (or just let it be asked automatically by iOS).
@yasirkula Is it possible to enable only rear camera and disabe the change camera button?
@shoib_akthar It isn’t possible with NativeCamera.
Hi. Very recently, I get a warning "Couldn’t load image at path: " on iOS and image is not loaded. When I change loadPath to imagePath at line 348 of NativeCamera.cs, it works on both iOS and Android (because loadPath is lacking the extension on iOS). I have updated to the latest version of the package but still the same.
Hi, you said recently. Did something change recently? Can you create an empty project with NativeCamera and see if the issue can be reproduced there? I’ve seen numerous cases where a project setting was somehow conflicting with one of my native plugins.
The problem seems to come from some changes outside of Native Camera in the project because when I check out an older commit it works We are currently looking into exactly which commit from which repository has broken it.
On top of the issue mentioned, Native Gallery is also problematic on iOS with our latest commit . The problem with NativeGallery is a bit different, in that we don’t need to change loadPath to imagePath. The problem is that we can only select a .jpg file but not .png or .avif from the gallery.
will update when I know more.