">
The Enplug platform allows any app to receive real time notifications from an external service.
Use your app’s configuration page (loaded each time when the customer first enables your app) to make an association of Enplug venueId with an account in your system if needed.
On your server use the following endpoint to push notifications:
https://adservernet.enplug.com/v1/notifications/post?token={yourAppToken}
You can see your auth token on the apps configuration page in the developer section of the dashboard. The payload or this POST request is:
In your app’s player page use Events API to make the screen respond appropriately. Your listener will receive the JSON data from each event you push.
In Social apps, an app listens for a "social" event and immediately handles it. In the callback function, it receives an object with an action (string ) and item (object) property.
Using the Application Status API, You can also request the reason why an app is being rendered on-screen by calling enplug.appStatus.getTrigger(). The response will contain a reason and data property.
In Social Apps, this method can be called as soon as you need the data from a social network, typically before calling enplug.appStatus.start() while it's still loading.