- Device identifiers become long-lived
launch()
,unlaunch()
,enableRemoteNotifications()
anddisableRemoteNotifications()
become async functions with a callback alternative- Add support for customisable hosts
Breaking changes
NotificareDevice.id
attribute no longer contains the push token. UseNotificare.push().subscriptionId
instead.- The
NotificareDevice
data model was reduced to only publicly relevant attributes. didRegisterDevice
only triggers once, when the device is created.launch()
,unlaunch()
,enableRemoteNotifications()
anddisableRemoteNotifications()
become suspending functions that complete after all the work is done.NotificareTransport
was moved to the push module.- Drops support for the monetize module.
- Removed deprecated
notificare(_:didReceiveNotification:)
. Usenotificare(_:didReceiveNotification:deliveryMechanism:)
instead. - Removed deprecated
notificare(_:didReceiveUnknownAction:for:responseText:)
delegate method. Renamed tonotificare(_:didOpenUnknownAction:for:responseText:)
. - Removed deprecated
handleNotificationRequest()
from push module. Include the NotificareNotificationServiceExtensionKit and useNotificareNotificationServiceExtension.handleNotificationRequest()
instead.