Skip to content

3.3.0

Choose a tag to compare

@abarisain abarisain released this 25 May 12:17
· 8 commits to master since this release

πŸŽ‰ First source available release

Core:

  • Added api.refreshServiceWorkerRegistration() to re-synchronize Batch's internal state with the current Service Worker registration.
  • Added api.doesExistingSubscriptionKeyMatchCurrent() to check if the current Service Worker (if there is one) registration's push applicationServerKey matches
    the one Batch is configured with.

See their jsdoc for more info.

User:

  • Optimize custom data sync if no data has been set.

UI Components:

  • Added the showIfPermissionGranted (boolean, default: true) configuration option on the Alert format.
    Setting it to false will make it so Alert doesn't show if the user has already granted the notification permission,
    even if they're not subscribed to Batch. In that case, they will not be automatically resubscribed until you call api.subscribe().