I am using Urban Airship to receive push notification in my iOS 10 (Swift) app. I am running with following problems, requesting your help to resolve.
Unable to hide notification when app is running foreground
To hide notification, I have tried following tasks..
Remove implementation of delegate method func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void)
I tried to pass completionHandler(UNNotificationPresentationOptionNone) to escape / hide notification toast, but "UNNotificationPresentationOptionNone" is no more available.
completionHandler([]) -- This does not work. I have tried to pass "UNNotificationPresentationOptionNone" in
Clear Notification
How to clear/remove delivered(Once user read or cancel) notification from list and update the badge icon accordingly.
Thanks