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.

pup.push({"apiReady", function(){
   console.log("PushPrime API is ready");

results matching ""

    No results matching ""