iOS camera permission dialog box - ios

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?

Related

Detect the button action in the WebView in iOS swift

how do you know when user clicks the button in the webview iOS swift
when he click the camera button in the remote url provided by backend team asks the permission and upload photo
2)after submit button cliked close the webpage and navigate to native screen
Can you please solve this issue

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?

Prevent camera permission to show in Swift

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.

Can I make my iphone app use only a portion of the screen

I was hoping to create a small windowed screen when the home button is pressed. It would keep a portion of the app process open while another app isn't open.
So say I had music playing on the app and when the home button gets pressed the screen would be windowed or shrunk and just displayed over the main screen (kind of like the little help button that can be moved around). Would using widgets in IOS 8 work?
When the user presses the Home button, the app goes to background, and that's it. You can't customize that action.
You only get a notification that the user closed the app so that you can save your app state or data for the next launch.

iOS caches the application screen when clicking the home button for the device

we are developing hybrid application on Worklight.
After the user launches the application on iOS, he will see the login screen, providing his credentials, he is inside our application.
Now, if the user clicked the home button for iOS before "logging out" from the app, the iOS will take a snapshot and store it inside the device cache.
By using IExplorer, I can see this screen cached, which in our situation a high critical issue.
How can I a override this screen with a white screen, in case the user clicked the home button of the iOS device it will be populated immediately, and the device will not snapshot the user main screen.?
Is there any thumbnail I can add to my nativeResource folder for iOS to solve this issue?
thank you.
I encourage you to look at the Worklight Knowledge Center. In most cases, you will find your answer.
To control the snapshot taken by the OS when moving to the background, you need to use the following API methods, depending on your needs:
WL.App.BackgroundHandler.setOnAppEnteringBackground and WL.App.BackgroundHandler.setOnAppEnteringForeground

Resources