- Device identifiers become long-lived
- Keep weak references for listeners to prevent memory leaks
- Fix padding discrepancies in alert dialog with actions
launch()
,unlaunch()
,enableRemoteNotifications()
anddisableRemoteNotifications()
become suspending functions with a callback alternative- Removed peer modules. Main modules now include Google Play Services libraries by default.
- Add support for customisable hosts
- Replace
NotificarePushIntentReceiver
'sonTokenChanged()
withonSubscriptionIdChanged()
- Renamed
NotificarePushService
toNotificareFirebaseMessagingService
. - Replaced
isNotificareNotification
Kotlin extension withNotificarePush.isNotificareNotification()
. - Add
Notificare.push().parseNotificationOpenedIntent(intent)
to ease processing the intent. - Add
Notificare.push().parseNotificationActionOpenedIntent(intent)
to ease processing the intent. - Allow
configure()
to be called more than once, provided Notificare is unlaunched.
Breaking changes
NotificareDevice.id
attribute no longer contains the push token. UseNotificare.push().subscription
instead.- The
NotificareDevice
data model was reduced to only publicly relevant attributes. onDeviceRegistered
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.
- Drops support for Huawei Mobile Services.
- Drops support for v1 passes in-app wallet.
- Removed deprecated
onNotificationReceived(context, notification)
. UseonNotificationReceived(context, notification, deliveryMechanism)
instead. - Removed
INTENT_ACTION_BEACON_NOTIFICATION_OPENED
from the notificare-geo-beacons module. This intent was previously moved to the notificare-geo module. - Removed deprecated
Notificare.OnReadyListener
. Use the more completeNotificare.Listener
instead. - Renamed
NotificarePushService
toNotificareFirebaseMessagingService
. - Removed
isNotificareNotification
Kotlin extension.