Skip to content

Conversation

@aurimasc
Copy link
Collaborator

@aurimasc aurimasc commented Dec 19, 2025

https://jira.unity3d.com/browse/PLAT-16838
Since iOS 15.4 there is an API to open apps notifications page in settings. Previously opening settings for the application was closest we can get to. Note that the API is marked deprecated in docs, but that marker only applies to Swift, not Objective-C.

The change is trivial "if" to choose one of two URLs to open based on iOS version, no additional testing is required.
The test itself: Main test project has a button to open notification settings. It used to open settings for the app, now, if devices runs iOS 15.4 or later, it will go to notifications page in those settings.

@aurimasc aurimasc requested review from a team and anjalin14 December 19, 2025 11:31
Copy link
Contributor

@anjalin14 anjalin14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few suggestions, pre-approving.

## [Unreleased]

### Changes & Improvements:
- [iOS] iOSNotificationCenter.OpenNotificationSettings will open notifications page for app on iOS 15.4 and newer.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- [iOS] iOSNotificationCenter.OpenNotificationSettings will open notifications page for app on iOS 15.4 and newer.
- [iOS] iOSNotificationCenter.OpenNotificationSettings now directly opens the notification settings page for your app on iOS 15.4 and later.

/// <summary>
/// Opens Settings.
/// On iOS there is no way to open notification settings specifically, but you can open settings app with current application settings.
/// Opens notifications page for this application in the Settings.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Opens notifications page for this application in the Settings.
/// Opens the notification settings page for this application in the Settings app.

/// Opens Settings.
/// On iOS there is no way to open notification settings specifically, but you can open settings app with current application settings.
/// Opens notifications page for this application in the Settings.
/// Opening notification settings specifically is supported since iOS 15.4. On older versions settings app with current application settings will be opened.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Opening notification settings specifically is supported since iOS 15.4. On older versions settings app with current application settings will be opened.
/// Opening the notification settings directly is supported on iOS 15.4 and later. On earlier versions, this method opens your application settings page in the Settings app.

/// On iOS there is no way to open notification settings specifically, but you can open settings app with current application settings.
/// Opens notifications page for this application in the Settings.
/// Opening notification settings specifically is supported since iOS 15.4. On older versions settings app with current application settings will be opened.
/// Note, that application will be suspended, since opening settings is switching to different application.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Note, that application will be suspended, since opening settings is switching to different application.
/// Note that your application suspends as the system switches to the Settings app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants