Notification Functions
Functions to register the app for push notifications and to clear notifications from the device's notification tray.
Register Notification
window.WTN.registerNotification({
callback: function (response) {
console.log(response.permissionStatus);
console.log(response.oneSignalPlayerId);
console.log(response.firebaseToken);
},
});import { registerNotification } from "webtonative";
registerNotification({
callback: (response) => {
console.log(response.permissionStatus);
console.log(response.oneSignalPlayerId);
console.log(response.firebaseToken);
},
});Key
Type
Required
Description
Key
Type
Description
Remove All Notifications
Key
Type
Required
Description
Key
Type
Description
Last updated