3.3.0
π 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 callapi.subscribe().