Prevent camera permission to show in Swift - ios

I'm using Permission Scope to handle permissions to access the camera and the Photolibrary on my app. This is a camera app pretty much like Apple's app.
In my app I call Permission Scope in the first login and it works, but before I touch any button, the "MyApp wants to access the camera" dialog shows. It just happens with the camera dialog, not with the Photo's.

Related

Reenabling PWA camera access in iOS

I'm developing a PWA where the user can scan a QR code (I'm using zxing-js). On iOS In the safari it behaves as expected: If I allow camera access when prompted, it will open camera preview and allow me to scan code. If I deny access, it won't work, and to regain access to camera in the future I would have to switch from 'Deny' to 'Allow' in the 'Camera' entry in the website's settings (From the "double A" icon to the left of the url bar). Does somebody know where I can manage permissions for camera, location, etc, (specially when needing to re-enable one that was previously denied) for a PWA in iOS?

How to dismiss iOS camera Access popup?

My app requests access to the iPhone/iPad camera. This results in the native iOS popup to appear, asking for user confirmation.
Is there a way in which I can dismiss this iOS popup (so before the user has made the OK / Don't Allow choice)?
For recent versions of iOS this popup automatically appears when you request write or read access for iOS Photo Library or use some of the AVFoundation framework components.
You can not dismiss it programmatically but you sure can create your own alert before showing the system one so you can have more control over what the user does.
It is the case in many 3rd party apps because when the user declines the access, it's not easy to ask them to go to settings and re-enable it from there. One of the easiest examples to implement would be something like this.

iOS camera permission dialog box

I am working on an app for ios and my app uses the camera permission. However the dialog box for the camera permission shows behind the application. This gives the user the impression that the app has frozen. The user then has to press the home button and click Allow then go back to the app.
What can i check to ensure the camera dialog is always on top of the application?

Open Display & Brightness Settings on AlertView button

Is there a way to open the Settings in Display&Brightness when tapping an alertView buttons? I want the user to be redirected here in order to change its Standard/Zoom view mode.
No.
In iOS 8, there is no supported method for a third-party app to open Settings to anything other than the top level, or to their app's custom settings, if they exist.
What you see in Tinder and Facebook are system alerts that iOS presents when your app wants to use the network or location services and (cellular data or) wi-fi is turned off. This is managed by iOS, and is not something that Tinder or Facebook had to add to their app.

How to present UIAlertView which contains Settings + Cancel button when location services are turned off in my app?

In one of my app I'm using Location Services. I'm throwing a normal alert view whenever the location services are off like "Enable Your Location Services" with "OK" button when I open my app. But I don't want this. Rather I need to show the alert view as "Turn on Location Services to Allow Your_App_Name to Determine Your Location" with "Settings" and "Cancel" button as shown in the image. Give me the suggestions with a sample code, Thanks.
You should just pop up an UIAlertView telling the user that needs to enable Location Services.
If you want to be more precise, you can always create a new View explaining the user how to enable location Services using graphical content, that makes it so much easier for the user.
You cannot open the Settings page from your app, and if you could, your app would be rejected on the app store.

Resources