We have the ability to attach files in our app using a hidden HTMLInputElement with type of file that gives the ability to select a file in the apps generated for Windows and Android. The app for iOS however also gives you the option to “Take a picture or video”. If the user clicks on that, the camera app opens and then the camera permission prompt is displayed. If the user for some reason selects “Deny” the camera app remains open and allows the user to take a picture or video and attaches it. If the user goes to attach another file after denying camera permission, the option for “Take a picture or video” is still available and if the user selects it the camera app opens, but the user cannot actually take a picture or video, they can only cancel out of the camera app. What needs to be done to not have “Take a picture or video” option available after the user has denied permission to the camera?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Want to disable Camera features in iOS device, as in android it won't display the camera option when I use input type file HTML tag : It is an IONIC App | 2 | 3219 | July 14, 2023 | |
IONIC media cature permission denied issue | 0 | 671 | October 1, 2017 | |
How to remove Take Video Option on input type file in iOS? | 0 | 1009 | September 27, 2019 | |
Ionic 4: how to intercept and request camera persmissions from <input type="file"> | 1 | 447 | October 17, 2019 | |
Input type="file" accept="image/*;capture=camera" not working inside iframe inside ionic blank page | 1 | 8724 | January 7, 2016 |