Releases: Notificare/notificare-sdk-android
Releases · Notificare/notificare-sdk-android
4.0.1
4.0.0
- 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.
4.0.0-beta.2
- Changed the
subscriptionId
properties to a more robust data model - Removed peer modules. Main modules now include Google Play Services libraries by default.
- 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
- Renamed
NotificarePushService
toNotificareFirebaseMessagingService
. - Removed
isNotificareNotification
Kotlin extension.
4.0.0-beta.1
- Fix padding discrepancies in alert dialog with actions
- Device identifiers become long-lived
- Keep weak references for listeners to prevent memory leaks
launch()
,unlaunch()
,enableRemoteNotifications()
anddisableRemoteNotifications()
become suspending functions with a callback alternative- Add support for customisable hosts
- Replace
NotificarePushIntentReceiver
'sonTokenChanged()
withonSubscriptionIdChanged()
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. 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.
3.10.0
3.9.1
3.9.0
3.8.0
3.7.1
3.7.0
- Adjusted zoom level when presenting a single map marker
- Fix Google Play Services Location minification issue
Important changes since 3.6.1
- Add manifest flag to disable the auto configuration
- Automatically enable remote notifications during launch when possible
- Automatically enable location updates during launch when possible
- Prevent the
device_registered
event from invoking before theready
event - Fix warning when notification intents are handled by the broadcast receiver
- Include proguard rule to work around the issue with Moshi in R8
- Fix crash when presenting an in-app browser when the phone has none installed
- Fix
getParcelableExtra
on API 33 in certain cases
Important notice: Re-enabling remote notifications and location services is no longer required.
You can safely remove the following piece of code as the SDK will automatically handle it for you during the launch flow.
override fun onReady(application: NotificareApplication) {
// This check is no longer necessary.
if (Notificare.push().hasRemoteNotificationsEnabled) {
Notificare.push().enableRemoteNotifications()
}
// This check is no longer necessary.
if (Notificare.geo().hasLocationServicesEnabled) {
Notificare.geo().enableLocationUpdates()
}
}