Xamarin Zxing Mobile Camera permission - xamarin

Whenever trying to upload my application to play Console i am getting a message that i need to specify privacy policy because of my app requesting Camera permission.
While Zxing net requeries the permission, my app does not use any of the library functionality requering camera.
Is there a way to remove the camera permission from the final androidmanifest?
What i've tried is adding tool:node="remove" which no result at all.

If you are not using any of the camera parts of ZXing.Net.Mobile, then you can probably get away of only adding a PackageReference to ZXing.Net. The ZXing.Net.Mobile bits provide views that use the camera.
So just remove ZXing.Net.Mobile and add ZXing.Net.

Related

What kind of UWP app to make for Windows camera filtering app?

The idea is to create an app that can read any local camera device, filter it, then have a new camera "virtual device" other apps can use as input.
How can this be done with UWP?
How can this be done with UWP?
Only the first part of your requirements could be done in UWP apps - can read any local camera device, filter it. UWP could connect to the local camera for capturing photo and video. You could also modify the media content as you want. More information could be known here: Camera - UWP.
But UWP apps are not able to send the camera to other apps as a virtual device. You might need to try other ways like win32 to achieve this.

Xamarin Forms WebView unable to use camera for HTML file input type

My problem seems to be very straight forward, yet very confusing. I have a wrapper Xamarin Forms application for my web app. The Xamarin app as expected, is just a WebView rendering the said web application.
On my web app, I have a HTML file input
<input type="file" accept="image/*,application/pdf;capture=camera">
When the webpage is accessed using the web browser (Android/iOS) it works as expected and provides the user with an option to use their camera for the picture. On the iOS version of the Xamarin Forms app, everything seems to be fine with the user still being presented an option to use their camera.
But on the Android version, I cant seem to get it to work. I have added the camera permission <uses-permission android:name="android.permission.CAMERA" /> in the AndroidManifest.xml. Added run time checks to ensure the user either has already or can now agree to giving camera access to the app.
Not sure what I am missing but the camera option does not seem to open up for the Android version. I have seen some articles about WebRTC and using a custom renderer but not sure how and where to processed with those. Any suggestion to get this to work would really help

Nativescript camera take multiple pictures before returning to the app

I have a NS 4.1.3 application using TS where I use the nativescript-camera plugin to allow the user to take photos which are saved to the device's photos library.
Everything works great, however, after each photo the camera closes and the user is back at the app and if they want to take another picture they have to go through the same process.
Is there a way to open the camera, take multiple pictures and only when done return back to the app? I could not find anything on the plugin's github page.
Thank you.
you can't take multiple photos in one session using native camera api due to platform limitation. what you can do is capture camera session using AVCaptureSession for ios and CameraCaptureSession camera2 api for android and then show it to user. after that on some button click capture photo.
here is some plugins which might help you:
https://github.com/NickIliev/NativeScript-cameraApp-poc
https://www.npmjs.com/package/nativescript-camera-preview
I ended up using navivescript-camera-plus
They have done a great job exposing the Camera and Library functionality via the plugin's api.

Activate the back camera on WP8 Device

I'm trying to do something very simple: implement a program that activates the back camera of my WP8 device. Could anyone help me do that?
If so you could try using the PhotoCamera class in order to capture images. I'm not pretty sure whether you'll be able to open the native Camera app of the device.
References:
How to access the camera from my Windows Phone 8 app (XAML and C#) and save the taken picture in a determined folder?
Sample from MSDN
Minimal Camera app in Windows Phone

Handling Images in PhoneGap

Current Behavior:
I have build a PhoneGap application that takes photos using Camera and the upload to a server. User can see all the photos that are uploaded as thumbnails.
What I am trying to do:
I want that the user should be able to tap on a photo thumbnail and the selected photo should open in the default image viewer for iOS/Android. Also, user should be able to swipe the photo in the default image viewer to see additional photos. This behavior is similar to what Facebook or any other app implements.
I am not sure how this feature is implemented and I am surprised that there is no one who faced this problem.
Thanks for all the help
Try this:
I haven't checked it, but it should work fine.

Resources