Contents

UIApplicationOpenNotificationSettingsURLString

A constant that provides the URL string you use to deep link to your app’s notification settings in the Settings app.

Declaration

nonisolated let UIApplicationOpenNotificationSettingsURLString: String

Discussion

Create a URL from this value and pass it to the open(_:options:completionHandler:) method to launch the Settings app and display your app’s notification settings, if it has any.

// Create the URL that deep links to your app's notification settings.
NSURL *url = [[NSURL alloc] initWithString:UIApplicationOpenNotificationSettingsURLString];
// Ask the system to open that URL.
[[UIApplication sharedApplication] openURL:url
                                   options:@{}
                         completionHandler:nil];

See Also

Deep linking to custom settings