In my Swift iOS app, I have code that uses the user's location. When the user declines to allow user location access, we have a warning message that gives the user the option to go to the settings page to change their decision. If they choose that option, we open the app's settings like so:
if let url = URL(string: UIApplication.openSettingsURLString) {
UIApplication.shared.open(url)
}
That all works fine. It's also worth noting that the openSettingsURLString resolves to "app-settings:"
I'm reusing the same code in an App Clip for my app. In my App Clip, the openSettingsURLString also resolves to "app-settings:", and I'd like to believe that iOS would resolve that to the app settings page for my App Clip. Instead, it looks like iOS wants to resolve "app-settings:" to the settings page for my main app (and in the more likely case that the main app isn't installed on the device, it just takes me to an early page in the Settings app).
Is there a way to open the App Clip's settings page?