Subscription Changed Callback

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

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