Xamarin: app requires camera and access to photos/files - unsure why

I've deployed a Xamarin.Android application to the Google Play store and I've noticed that the Android application needs permission to access the camera as well as photos/files. I'm not sure why because the app has absolutely no functionality that involves the camera or the user's photos/files.

My application uses push notifications and geolocation, and those permissions are requested at app runtime. I was required to add the camera permissions in the AndroidManifest.

Is there some way to find out what SDK or NuGet package is requiring camera permissions? Also, the iOS version doesn't request the camera or photos/files so it seems like its just an Android thing.

Please and thank you!

1 answer

  • answered 2018-11-13 18:56 O.H.

    It looks like ZXing, the library we use for barcode generation, forces these permissions into the app even though we don't use the ZXing features that make use of the camera (e.g. barcode scanning). This is really unfortunate.

    There is currently an open issue on the ZXing.Net.Mobile Github to remedy this: https://github.com/Redth/ZXing.Net.Mobile/issues/517