@braze/web-sdk-no-amd
Advanced tools
Changelog
2.7.1
manageServiceWorkerExternally
and disablePushTokenMaintenance
initialization options were swapped.Changelog
3.0.0
@braze
NPM packages. The TypeScript defintions include documentation and autocomplete in IDEs that support it, even if your project does not use TypeScript.ab
namespace has been removed. To migrate from previous integrations, you can simply find and replace all references to appboy.ab
with appboy
.InAppMessage.Button
has been renamed to InAppMessageButton
. To migrate from previous integrations, you can simply find and replace all references to InAppMessage.Button
with InAppMessageButton
.baseUrl
option to appboy.initialize
is now required to initialize the SDK. If your integration did not already provide the baseUrl
option, it should now be set to the previous default value of sdk.iad-01.braze.com
(e.g, appboy.initialize('YOUR-API-KEY', { baseUrl: 'sdk.iad-01.braze.com' });
).messagingReadyCallback
from openSession
and changeUser
. Since 2.3.1, the SDK handles events that occur during the asynchronous portion of these calls gracefully, and ensures internally that only the latest messaging will be triggered. Any code previously being invoked inside this callback may be safely placed directly after the openSession or changeUser call.Changelog
2.7.0
appboyBridge.getUser().addAlias(alias, label)
to HTML In-App Messages.global
object is not accessible by the SDK.ab.Card
methods removeAllSubscriptions
, removeSubscription
, subscribeToClickedEvent
, and subscribeToDismissedEvent
were minified, resulting in undefined
when called.Changelog
2.6.0
@braze
scope. The core and full versions of the SDK as well as the service worker are now published in their own packages, resulting in a drastically reduced install size compared to the appboy-web-sdk
package. This is not a breaking change for existing NPM integrations and we will continue to publish the appboy-web-sdk
package to maintain backwards compatibility. See the README for integration details.appboyBridge.getUser().setLanguage(language)
to HTML In-App Messages.Notification
is not defined.appboy.registerAppboyPushMessages
would throw a javascript error if the user did not allow websites to ask for permission to send notifications.