I'm using Appcelerator studio for developing my app. In this app I'm taking photos from camera and posting them to my server. For Android 6, I'm asking run time permissions from users for using camera. My code is working fine. But, when I ask permission for camera on run time. It is asking 3 permissions,
- Allow app to take photos and record videos.
- App will access gallery.
- App will use camera location.
My question is why I'm seeing all these permissions when I'm only using camera for taking photos and how can I get rid of them?
Code snippet:
if (Ti.Media.hasCameraPermissions()) {
openCamera();
} else {
Ti.Media.requestCameraPermissions(function(e) {
if (e.success) {
openCamera();
} else {
alert('You denied permission');
}
});
}
Thanks in advance for help.