SDK changelog
1.4.023/01/2024
Plugin
- Dart 2.15+ is now required.
- Updated Batch to 1.21.0.
- Batch requires iOS 12.0 or higher.
- Batch now compiles with and targets SDK 34 (Android 14).
User
- Removed automatic collection of the advertising id:
- Android's Methods
setCanUseAdvertisingID
andcanUseAdvertisingID
fromBatchPluginConfiguration
are now deprecated and do nothing. - Android's manifest configuration
com.batch.flutter.use_gaid
has been removed. - iOS's property
canUseIDFA
fromBatchPluginConfiguration
is now deprecated and does nothing. - iOS's Info.plist property
BatchFlutterCanUseIDFA
has been removed. - You need to collect it from your side and pass it to Batch via the added
setAttributionIdentifier(String? id)
method. Batch will persist it across starts.
- Android's Methods
- Added
setEmail(String? email)
method toBatchUserDataEditor
. This requires to have a user identifier registered or to call thesetIdentifier
method on the editor instance beforehand. - Added
setEmailMarketingSubscriptionState(BatchEmailSubscriptionState state)
method toBatchUserDataEditor
.
Inbox
- Added
hasLandingMessage
property toBatchInboxNotificationContent
. - Added
displayNotificationLandingMessage(BatchInboxNotificationContent notification)
method toBatchInboxFetcher
.
1.3.015/09/2022
Plugin
- Updated Batch to 1.19.2.
Bumping your Android project's
compileSdkVersion
to33
might be required. Xcode 13.3 required if your project uses bitcode.
Push
- Added Android implementation of the
batch.push.requestNotificationAuthorization()
API. This allows you to request for the new notification permission introduced in Android 13. See the documentation for more info.
1.2.005/04/2022
Plugin
- Updated Batch to 1.19.0.
Bumping your Android project's
compileSdkVersion
to31
might be required. Xcode 13.3 required if your project uses bitcode.
Inbox
- Silent notifications are now filtered on Android rather than throwing an exception when fetched.
1.1.315/02/2022
Plugin
- Updated dependencies so that the project can be built using Flutter 2.10.
Bumping your Android project'scompileSdkVersion
to31
might be required.
1.1.215/02/2022
Plugin
- Android: Fixed an issue where Batch's "advanced device information" was disabled by default and not configurable using the Manifest.
- Android: Manifest configuration of the initial Do Not Disturb state now works as expected.
1.1.121/12/2021
Plugin
- Update Batch iOS to 1.18.1
- Work around a Flutter issue where a wrong nullability annotation resulted in a debug app crashing when started from the home screen. The scenario is still unsupported by Flutter, but the app will not crash anymore.
1.1.029/11/2021
Plugin
- Update Batch to 1.18
User
- Added support for the URL attribute and event data type.
1.0.009/09/2021
Initial stable release 🎉
Changes since RC:
Inbox
- Removed
isDeleted
onBatchInboxNotificationContent
as it doesn't work like it does on the native SDK due to plugin limitations.
1.0.0-rc.229/07/2021
Second Release Candidate
Inbox
- Fix
limit
andmaxPageSize
staying at their default values.
1.0.0-rc.123/06/2021
First Release Candidate
Messaging
- Added Do Not Disturb support.
Inbox
- Calling
dispose()
on a disposed fetcher doesn't throw anymore. - Added
markAsRead()
,markAllAsRead()
andmarkAsDeleted()
. - Added
limit
andmaxPageSize
togetFetcherForInstallation()
andgetFetcherForUser()
.
0.0.328/05/2021
Inbox
- Added Batch Inbox support:
- Fetchers can be instanciated for both Installation and User modes.
fetchNewNotifications()
,fetchNextPage()
,get allNotifications
anddispose()
have been implemented.markAsRead()
,markAsDeleted()
and pagination configuration will come in a later beta.
Push
- Added
setShowForegroundNotificationsOniOS()
, which can enable foreground notification display on iOS.
Note: This requiresBatchUNUserNotificationCenterDelegate
to be set as yourUNUserNotificationCenterDelegate
in the native integration.
User
- Added
get attributes
andget tagCollections
properties to read back previously set attributes and tag collections. - Added
get identifier
,get language
andget region
to read back the user identifier and language/region overrides.
0.0.212/05/2021
Core
- Added
showDebugView()
. - Added
optIn()
,optOut()
andoptOutAndWipeData()
.isOptedOut
will come in a later seed.
Push
- Added
requestProvisionalNotificationAuthorization()
.
User
- Added
trackEvent()
,trackTransaction()
,trackLocation()
and theBatchEventData
class. - Added
newEditor()
which returns aBatchUserDataEditor
instance, allowing you to edit the user profile (attributes, tags, language/region, custom identifier).