Subscription Changed Callback

You can hook into our SDK to listen to subscription changes for the current user.

pup.push({"subscriptionChange", function(){
   console.log("Subscription Changed");
   if(pup.isSubscribed()){
      console.log("User subscribed");
   } else {
      console.log("User is not subscribed");
   }
}});

results matching ""

    No results matching ""