Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added iOS implementation of switchToNotificationSettings function #517

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NitroTears
Copy link

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Documentation changes
  • Other... Please describe:

PR Checklist

For bug fixes / features, please check if your PR fulfils the following requirements:

  • Testing has been carried out for the changes have been added
  • Regression testing has been carried out for existing functionality
  • Docs have been added / updated

What is the purpose of this PR?

I have implemented the iOS platform functionality for the existing switchToNotificationSettings function in the Notifications module, currently only available on Android. On iOS 15.4 or below, the native API to do this was not available, so instead similar to the android implementation, it will take you to the general app settings page instead.

Does this PR introduce a breaking change?

  • Yes
  • No

What testing has been done on the changes in the PR?

An existing project of mine required the function on both platforms. I have tested it on devices both above and below iOS 15.4.

What testing has been done on existing functionality?

I have have made sure the original android function had not been affected, as I require both for my project.

@NitroTears NitroTears changed the title added switchToNotificationSettings function for iOS platform added iOS implementation of switchToNotificationSettings function May 26, 2024
@NitroTears NitroTears changed the title added iOS implementation of switchToNotificationSettings function Added iOS implementation of switchToNotificationSettings function May 26, 2024
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.

None yet

2 participants