Skip to content

Commit

Permalink
Update NativeSettingsPlugin.swift
Browse files Browse the repository at this point in the history
Implemented option to open app notification setting fixing issue RaphaelWoude#42
  • Loading branch information
cornflakes authored Sep 3, 2024
1 parent 069452b commit fb5ca20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ios/Plugin/NativeSettingsPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public class NativeSettingsPlugin: CAPPlugin {
settingsUrl = URL(string: settingsPaths[option]!)
} else if option == "app" {
settingsUrl = URL(string: UIApplication.openSettingsURLString)
} else if option == "appNotification" {
settingsUrl = URL(string: UIApplication.openNotificationSettingsURLString)
} else {
call.reject("Requested setting \"" + option + "\" is not available on iOS.")
return
Expand Down

0 comments on commit fb5ca20

Please sign in to comment.