14.0.0
Breaking
- Resolves an Android issue with
setDateOfBirth(year, month, day)introduced in1.38.0, where the month was indexed 0-11 instead of 1-12. The months are now indexed from 1-12 on both Android and iOS.- The previous behavior on Android would assign
setDateOfBirth(1970, 1, 1)to the month of February instead of the intended month of January, andsetDateOfBirth(1970, 12, 1)tonullinstead of the intended month of December. - Customers who wish to retroactively rectify this are recommended to ask their users to confirm their dates of birth and call
setDateOfBirthwith these values.
- The previous behavior on Android would assign
- Updates the native Android version bindings from Braze Android SDK 32.1.0 to 35.0.0.
- The minimum required Android SDK version is 25. See more details here.
- The
NativeBrazeReactModule.tsfile has been moved into a sub-directory calledspecs.- If your project contains direct references to this file, you will need to update the relative path of your imports to
/specs/NativeBrazeReactModule. - For an example, refer to the sample test setup here.
- If your project contains direct references to this file, you will need to update the relative path of your imports to
Added
- Updates the native iOS version bindings from Braze Swift SDK 11.2.0 to 11.7.0.
- Adds support for the Braze Banner Cards product and APIs to utilize them.
Braze.requestBannersRefresh(placementIds)- to request a refresh of the banners associated with the provided placement IDs. On iOS only, failures will be logged if unsuccessful.Braze.getBanner(placementId)- to get a banner with the provided placement ID if available in cache, otherwise returns null.Braze.Events.BANNER_CARDS_UPDATEDevent forBraze.addListener- to subscribe to banners updates.
- Adds the default UI components for Braze Banner Cards.
- To use this feature, insert the
Braze.BrazeBannerViewcomponent into your view hierarchy with the requiredplacementIDproperty.
- To use this feature, insert the