API Ready Callback

Since our JavaScript SDK loads asynchronously, it is crucial to know when it is safe to call our SDK methods. We offer synchronized variants for some of our methods, you can use them conveniently without knowing when API is ready. For complex logic that depends on our SDK, it is important to use them inside API Ready callback.

popnotifi("onReady", function(){
   console.log("API is ready to be used");
});

Last updated