You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically this keeps track of the callback in a window.appboy scoped var and provides a new function called _messagingReady(callback). Calls to logCustomEvent() can be wrapped as follows:
When the messages have been downloaded, the callback is invoked. In testing simple pages, it seems to solve the race condition and make the integration more predictable.
Migrated from #25 by @hmedney
Basically this keeps track of the callback in a
window.appboy
scoped var and provides a new function called_messagingReady(callback)
. Calls tologCustomEvent()
can be wrapped as follows:When the messages have been downloaded, the callback is invoked. In testing simple pages, it seems to solve the race condition and make the integration more predictable.
For example, if a page instruments as follows:
The above change will ensure all the Braze in-app messages have been downloaded before the page custom event is called on the SDK.
The text was updated successfully, but these errors were encountered: