Skip to main content

Mobile Push Webhook

Through Aghanim's LiveOps Builder, developers can trigger mobile push notifications in response to player actions or interactions within the Aghanim-generated game hub. Once the conditions outlined in a campaign are met, Aghanim dispatches a webhook to your game containing the mobile push content specified in the campaign.

Requirements

To use mobile push webhooks from Aghanim, you should have the webhook server configured as follows:

  • HTTPS endpoint, accepting POST webhook requests.
  • Listen for events, generated and signed by Aghanim.
  • Trigger the display of mobile pushes using the received content.
  • Respond with 2xx status codes upon successful receipt and processing of the webhook, and 4xx or 5xx for denial or errors.

Configuration

  1. Develop a function for the ingame.push webhook processing.
  2. Make your endpoint available.
  3. Register your endpoint within Aghanim account → Game → Webhooks → New Webhook by choosing the in-game push event type.
  4. Configure a liveops campaign that will trigger a mobile push webhook.

Guide on configuring a campaign for a mobile push

Alternatively, you can register your endpoint within Aghanim using the Create Webhook API method.

The Event Data schema

KeyTypeDescription
player_idstringThe unique Player ID chosen for player authentication to display the push notification to.
titlestringThe push notification title.
bodystringThe push notification body.
iconstring|nullThe push notification icon URL.
urlstring|nullURL to open when a player clicks on the push notification.

Need help?
Contact our integration team at integration@aghanim.com