Skip to content
This repository was archived by the owner on Jul 28, 2022. It is now read-only.

v6.0.0-rc.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@Minishlink Minishlink released this 11 Jun 10:54
· 31 commits to master since this release

This is a pre-release for the next version of @bam.tech/react-native-batch. There are several breaking changes (indicated with [BREAKING]) so please read along. The documentation hosted on GitHub has not been updated as this is still a pre-release. The following changelog may evolve with new breaking changes until the stable version.

See also rc.0 changelog, rc.1 changelog, and rc.2 changelog.

  • [BREAKING] Do not disturb (for mobile landings/in app messages) is now enabled by default. And on Android, it is now configured on the native side like on iOS. Read the updated README to see why and how to handle the new behavior (call disableDoNotDisturbAndShowPendingMessage when ready, or disable do not disturb manually)
  • [BREAKING] Batch.start is now useless so it has been removed. You must remove any call to Batch.start in your javascript code.
  • [BREAKING] [iOS] the optional argument to [RNBatch start] native method is now useless so it has been removed. You must replace any [RNBatch start:false] to [RNBatch start]
  • [iOS] showPendingMessage will now work correctly
  • [Android] Fixed potential crash in showPendingMessage when the activity is not found
  • Added disableDoNotDisturbAndShowPendingMessage for quicker setup and to minimize any race condition between disabling do not disturb and showing the pending message
  • Exposed promises in critical methods such as optIn in order to prevent potential race conditions