Web Push SDK
Các hàm trong Web Push SDK
initApp
initApp<script src="https://sdk.pushdi.com/js/generated/xxxxxxxxx.js" async=""></script>
<script>
var PushdyIns = window.PushdyIns || [];
PushdyIns.push(function() {
PushdyIns.initApp();
});
</script>show
showPushdyIns.push(function() {
PushdyIns.show();
});isPushNotificationSupported
isPushNotificationSupportedisPushNotificationEnabled
isPushNotificationEnabledsetAttribute
setAttributepushAttribute
pushAttributepushAttributeByDay
pushAttributeByDaygetPlayerId
getPlayerIdCác sự kiện trong Web Push SDK
onAllowSubscription
onAllowSubscriptiononDenySubscription
onDenySubscriptiononShowSubscriptionBox
onShowSubscriptionBoxonSubscribe
onSubscribeLast updated