[Swift 5] Processing and precautions for transitioning to the iOS settings app

Processing to transition to the iOS settings app

guard let url = URL(string: UIApplication.openSettingsURLString), UIApplication.shared.canOpenURL(url) else { return }
UIApplication.shared.open(url, options: [:], completionHandler: nil)

important point

① Behavior when transitioning to the setting app

If there is an application-specific setting item in the "Settings app", the screen will change to the application-specific setting screen.

For detailed behavior, the following article will be helpful. UIApplicationOpenSettings URLString to investigate the behavior when opening the settings app

(2) It will be rejected if you use the process (App-Prefs: root =) to transition to a specific screen of the setting application.

Please note that there seems to be an example of being rejected when transitioning to a specific screen of the setting application.

Details are written in the following article. What to do if 2.5.1 is rejected because you used App-Prefs: root =

Recommended Posts

[Swift 5] Processing and precautions for transitioning to the iOS settings app
Best practice to change settings for each environment in iOS app (Swift)
How to transition from the [Swift5] app to the iPhone settings screen
[Swift 5] Processing to close the keyboard on UITableView
How to add sound in the app (swift)
[Swift] How to link the app with Firebase
[Swift] Use UserDefaults to save data in the app
[For Swift beginners] I tried to summarize the messy layout cycle of ViewController and View
I tried to introduce Bootstrap 4 to the Rails 6 app [for beginners]
Android app to select and display images from the gallery
Add a shadow to the Swift Button (and also the circle)
Options for rails new and settings to be done after rails new
[Android] Change the app name and app icon for each Flavor
Technical causes and countermeasures for the points that I was addicted to with the Android app & Kotlin (2. Processing related to the camera function of Android *)
[Swift] Processing to share screenshots
Technical causes and countermeasures for the points I was addicted to with the first Android app & Kotlin
[Swift] How to display when the quiz app answers correctly [Beginner]
[Swift5] How to get an array and the complement of arrays
[Tips] How to solve problems with XCode and Swift for beginners
[Swift UI] How to get the startup status of the application [iOS]
"Wait for the process to finish." And kill the process because it remains.
Introduction to Android App Development 1 Installing JDK and Android Studio for mac
[iOS] I tried to make a processing application like Instagram with Swift
Create an iOS shortcut app and quickly open the key with NFC
[Active Admin] I want to customize the default create and update processing
The story of releasing the Android app to the Play Store for the first time.
Automatically assign date and build number for the day to Maven version
Creating an app and deploying it for the first time on heroku
[Rails] Articles for beginners to organize and understand the flow of form_with