-
Notifications
You must be signed in to change notification settings - Fork 18
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
iOS Notification Options support #154
Comments
Working on a major SDK update where I will add this with foreground presentation options. |
We're facing a similar need here. In our AppDelegate NotificationCenter.default.addObserver(forName: Airship.airshipReadyNotification, object: nil, queue: nil) { notification in
if #available(iOS 14, *) {
Airship.push.defaultPresentationOptions = [.badge, .banner, .list, .sound]
Airship.push.notificationOptions = [.badge, .sound]
} else {
Airship.push.defaultPresentationOptions = [.alert, .badge, .sound]
Airship.push.notificationOptions = [.badge, .sound]
}
} but we're not auto initialising the Airship SDK and are instead calling When we call |
@tomalabaster You may need to delay setting the options til the next run loop by wrapping what you have in
We have a major plugin rewrite coming that will add support for this and potentially be able to set it per notification all through flutter. This PR is the start of it - #161 we are just wrapping up a major native SDK release then we will focus on getting plugins up to date. I am hoping for a new flutter plugin by the end of this month. |
Thanks @rlepinski will give that a try and keep an eye out 👍 |
We added support in 7.0.0: Foreground presentation options: |
Please add support of iOS Notifications Options to make Airship Flutter package more reliable and highly customisable.
The text was updated successfully, but these errors were encountered: