Push Notifications
These instructions describe how to setup Push Notifications
Website
Installing push notifications on your website is very simple. It only takes two steps:
Upload the file provided by the InTarget team to the root folder of your site;
Add the script provided by the InTarget team to all your site pages.
<script type="module">
import { InTargetFBaseMessaging } from "https://api.intarget.app/intarget-fb-messaging.js";
// put your data here
const projectConfig = {
projectId: '',
playerId: '',
};
const accessToken = 'accessToken';
const messaging = new InTargetFBaseMessaging();
await messaging.init(projectConfig, accessToken);
await messaging.setOnMessageHandler();
</script>
Last updated
Was this helpful?