Survey notifications
These are optional implementations for Sense360 SDK survey notifications.
Notification handlers
All notifications from Sense360 are sent with a UNNotificationCategory of sense360
, handled by the delegate methods below. The iOS SDK calls the completion handlers for all notifications with the sense360
category.
These methods return true
if it was a Sense360 notification and the completion handler was invoked. Ignore notifications where isSense360Notification = true
.
Notification callbacks
Notification callbacks notify you when a notification is sent, clicked, or cancelled (that is, swiped).
Create the class NotificationHandler.swift
to implement the SenseNotificationDelegate
protocol.
Pass NotificationHandler()
into the Sense360 start:sendNotifications:
call.