- Home /
iOS Application.OpenUrl("app-settings:") Camera Crash Issue
Hello,
I have following problem: if I open Application Settings using
Application.OpenURL("app-settings:")
and change Camera Permission Setting the application crashes (tested on iOS 11 and 10 however I care only for iOS 11).
This happens every time even on minimum-repro-project, so I believe other plugins in project are not the issue.
Changing, for example Siri & Search settings or any other setting for that matter, does not have any negative effect on application whatsoever.
Any ideas why this would happen and how to fix it?
Xcode 9.1, Unity 2017.1.1f, Unity 2017.2.0f3
Thanks
Answer by Sacrify · Apr 05, 2018 at 03:03 AM
Your app is not crashing its just forced to restart by iOS with new privacy settings. So when you change the camera permission then it means privacy policy changed, so app will be killed if its attached to debugger else it will relaunch.
Also, Not only camera permission If the user at some point changes the Address Book, Calendars, Reminders, Camera, or Photos permissions, iOS will SIGKILL the app. (it's default behaviour of iOS)
Refer from: https://stackoverflow.com/questions/43974752/app-crashes-in-background-while-changing-permission-swift
Your answer
Follow this Question
Related Questions
Can a iOS game camera have the Bloom optimized effect with clear flags = depth only? 0 Answers
IL2CPP Crash on Instantiate(gameObject) 2 Answers
mailto: does not work on iOS? 2 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
iOS crashing on Texture2D LoadImage 1 Answer