Skip to main content

Testing and Support

The control panel shows everything about the notifications of a specific player and of the whole project: pushes and their statuses, the inbox as the player sees it, and the push channels of players. Use these tools to test notifications during development and to investigate player complaints after the release.

The tools are available to the project owner and developers.

Player Notifications​

Open Players, find the player by ID and go to the Notifications section of the player card.

Notifications section of the player card

  1. The Notifications section in the player card.
  2. Tabs: Pushes, Inbox and Contacts of this player.
  3. The Compensate button — the fastest way to compensate a player.

Pushes​

The Pushes tab shows all notifications of the player for the last 30 days: pending, sent, skipped, failed and cancelled. You can filter the list by status.

Above the list you see how many pushes the player received during the current day (UTC) out of the project's daily limit. Test players are not limited, but their counter grows too. The Reset limit button sets today's counter to zero, so you can send the player pushes again. This is handy when you test notifications on your own device. Resetting does not send pushes skipped because of the limit: retry them with Retry.

  • The Message column shows the title and text of the push, the send time, the source (client, server API, campaign, chat, reminder, test, admin) and the template.
  • The Status column shows the status, the delivery mode, the channel and the reason of the error or skip.
  • Click a row to see the details: job ID, send and delivery time, channel, attempts, template, tag, campaign, payload, the payload sent to the game (gp_payload), the ID on the platform (VK notification_id), inbox tags, variables, the test flag and the open time.

Pushes of the player with details

Actions with a push:

Push actions

  1. Retry — puts a failed, skipped or cancelled push back into the queue right away. Attempts start from zero. Use it after you fix the cause, for example, after you add the platform key or enable notifications in the settings. The retried push goes through the same rules: quiet hours, daily limit and the plan quota.
  2. Send similar — opens the send form with the template or text, payload and delivery mode of this push.
  3. Delete — removes the push from the log. A pending push is not sent. Select several rows to delete them at once.

Common reasons in the Status column:

ReasonWhat it means
no_channelThe player has no reachable push channel. Check the contacts of the player.
player_onlineThe player was in the game, and "Do not send personal pushes while the player is online" is enabled.
quiet_hoursA personal push fell into quiet hours and would be delayed by more than a day.
player_daily_limitThe player has already received the daily limit of pushes. For testing, reset the limit above the push list.
quota_exceededThe monthly push quota of the plan is used up.
plan_test_onlyOn the current plan pushes are delivered only to test players.
disabledNotifications are disabled in the project settings.
template_not_foundThe template of the push was deleted.
campaign_deletedThe campaign of the push was deleted.
Other textThe error returned by the platform (VK, OK, Telegram, MSN, Web Push, FCM).

Send a Push to the Player​

The Send push button on the Pushes tab opens the send form. The player is already selected.

Send a push to the player
  • Template or Custom text — what to send.
  • Delivery — push, inbox, push and inbox, or inbox if the player has no push channel. With delivery to the inbox you can set inbox tags and Claimable.
  • Variables (JSON) — values for {variables} of the template.
  • Payload — the string for the game: gp.notifications.launchPayload when the player opens the game from the push, and message.payload in the inbox.
  • Send at — the time of a delayed send. Empty — now.

The push goes through the usual queue: quiet hours, daily limit and the plan quota apply, test players are not limited. Unlike the test send of a template, the form works for any player, not only for test players. In the log the source of such pushes is Admin.

Player Inbox​

The Inbox tab shows the messages as the player sees them: personal messages and messages of campaigns that match the player. The counter shows the number of unread messages.

Inbox actions

  1. Mark as read / unread — useful to test the unread counters in the game.
  2. Edit — rewrite the title, text, tags, payload, the Claimable flag, icon, image and expiration of a personal message.
  3. Duplicate — opens the new message form with the same content. For example, to send a gift once again.
  4. Delete — removes a personal message.
  5. Hide for player — for campaign messages. They are edited in the campaign, and hiding removes the message only for this player.

The New message button creates a personal message: title, text, tags, expiration (1–90 days, 14 by default), payload, the Claimable flag, icon and image. Claimable means that the player can claim the message with gp.inbox.claim, and the game decides what to give by the payload. Fill from template copies the texts of a template in the player's language (variables are not substituted). Also send a push with this text additionally sends a push, so the player learns about the message and opens the game.

If the player is in the game, the game gets the message right away in event:message. Otherwise it sees new messages on the next gp.inbox.fetch(), gp.inbox.fetchUnreadCount() or gp.inbox.open() call: the SDK does not fetch the inbox by itself.

Compensating a Player​

A player complains: progress is lost, a purchase is not delivered, something broke. The best way to compensate is a personal message in the inbox with a gift in the payload, for example {"gold":500}.

Why not edit the player data in the panel:

  • If the player is in the game right now, the game synchronizes its state and overwrites the changes made in the panel.
  • Manual editing of fields is easy to get wrong.

A message with a gift is safe: the game gives the gift itself when the player claims the message with gp.inbox.claim(). A message is claimed only once, and you see whether the player has claimed it.

Compensation
  1. Open the player card → Notifications → Inbox → Compensate. Check the title and text: they are already filled with an apology, change them if needed. The message is kept for 30 days and has the support tag.
  2. In the Payload field, describe the gift in the format your game handles, for example {"gold":500}. Claimable is already enabled.
  3. If you want to call the player back to the game, enable Also send a push with this text.
  4. Click Send.

The message appears in the list with the Admin source and the Claimable chip. When the player claims it, the chip changes to Claimed with the date.

To compensate many players at once (for example, after a server failure), use a campaign with delivery to the inbox, a Payload and Claimable, or the server API with delivery: INBOX, payload and claimable: true.

Handle Compensations in the Game​

The panel does not change the player data: the game gives the gift itself. So the game must handle such messages:

  • Agree on the payload format in advance, for example {"gold":500}, and use it for all compensations.
  • Give the gift when the player claims the message with gp.inbox.claim(): in the claim handler of the built-in window, in your own inbox window or right at the start of the game.

For example, claim all compensations at the start of the game:

async function claimCompensations() {
// Compensations have the "support" tag
const { items } = await gp.inbox.fetch({ tags: ["support"] });

for (const item of items) {
if (!item.claimable || item.isClaimed) {
continue;
}

const { message } = await gp.inbox.claim({ id: item.id, lazy: true });

let gift = null;
try {
gift = JSON.parse(message.payload);
} catch (err) {}

if (gift?.gold) {
gp.player.add("gold", gift.gold);
}
}

// Saves the gifts and the claims with one request
await gp.player.sync();
}

Project Contacts​

Notifications → Contacts shows all push channels registered by the players of the project. The same list for one player is on the Contacts tab of the player card.

Contacts of the project

  1. The Contacts tab. Filter by channel, permission and player ID.
  2. Edit and delete a contact.

For each contact: channel and platform, player, permission and whether the contact is reachable, address (player ID on the platform, Telegram chat ID, FCM token or Web Push endpoint), the site of the Web Push subscription, language, time zone, the last active day and the number of send failures. Web Push keys are not shown.

Edit a contact
  • Permission — you can set "Denied" or "Not asked" to stop pushes to this contact. "Allowed" can be set only for a test contact: consent is given by the player.
  • Language — the language of push texts.
  • Time zone — used for quiet hours and campaigns in local time.
  • Channel, address, player and platform can not be changed.
  • The game refreshes the language and time zone on the next player sync or registration.

Delete removes the contact: the player stops receiving pushes through it until the game registers the contact again — when the player opens the game with notifications allowed.

The Player Does Not Receive Pushes​

  1. Contacts tab of the player: is there a contact with the "Allowed" permission and "Reachable" status? If not, the player has not allowed notifications or the subscription expired.
  2. Pushes tab: find the push and look at the status and the reason.
  3. Project settings: notifications are enabled, quiet hours, the daily limit and the plan quota.
  4. After you fix the cause, click Retry for the push or send a new one.

Stay in Touch​

Other documents of this chapter available Here. To get started, welcome to the Tutorials chapter.

GamePush Community Telegram: @gs_community.

For your suggestions e-mail: official@gamepush.com

We Wish you Success!