All Collections
ProPush.me ENG
How to use custom elements of Propush.me code
How to use custom elements of Propush.me code
A
Written by Admin
Updated over a week ago

In order to make monetization more efficient, please use the custom elements of the Propush.me code. Below are the explanations for these elements: 

sdk.onBeforePermissionPrompt(function() { }); // this code will be executed before push tag will ask for permission 

sdk.onPermissionDefault(function() { }); // this code will be executed if user skips notification permission dialog

sdk.onPermissionAllowed(function() { }); // this code will be executed if user clicks on Allow button

sdk.onPermissionDenied(function() { }); // this code will be executed if user clicks on Deny button

sdk.onAlreadySubscribed(function() { }); // this code will be executed if user has been subscribed to notifications already

sdk.onNotificationUnsupported(function() { }); // this code will be executed if browser does not support notifications


Here are the examples, that will help you to design your own custom elements:

To make monetization more efficient, you can also use trafficback link of Propush.me - click on “Create TrafficBack” button in settings of your site / landing, and implement it according to the instruction here.

Did this answer your question?