-
Notifications
You must be signed in to change notification settings - Fork 262
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
UNUserNotificationCenterDelegate willPresent does't work with OneSignal #214
Comments
@alexsanderkhitev You can set You should still be able to use If you still are seeing an issue please make sure you are using our latest 2.4.3 SDK and share your code in your |
@jkasten2 thanks for quick response. I set it this way, but so notifications do not come when the application is in foreground UPDATE: Yes, I'm using the latest version of OneSignal. OneSignal.initWithLaunchOptions(launchOptions, appId: appID, handleNotificationAction: { (notificationResult) in
}, settings: [kOSSettingsKeyInFocusDisplayOption : "Notification"]) |
@alexsanderkhitev It is a type so it should the following in Swift. OSNotificationDisplayType.notification.rawValue |
@jkasten2 |
I'm using OneSignal to send Push Notification, I ran into the problem that on iOS 10 the method
func userNotificationCenter (_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void)
does not work, andUIAlertController
appears, Instead of the standard Banner. What do I need to do to make this method work on iOS 10 and to display the standard banner?Alert looks like this now
The text was updated successfully, but these errors were encountered: