Skip to main content

Player progress for custom daily reward programs

What's new

The daily_reward.get webhook supports the new custom daily reward program type. For custom programs Aghanim sends the player's progress in the current cycle, and your server answers with the cycle number and the time each day opens.

Impact

Your game controls the pace of a custom program. It can keep the player in the current cycle, start a new one, and decide when the next reward becomes claimable. Other program types work as before.

Changes

ResourceChange
daily_reward.getAdded optional progress to event_data, with the current cycle_number and the claims made in it (each with day_number and claimed_at). Sent only for custom programs and not for anonymous players
daily_reward.getAdded optional cycle_number to the response. Required for custom programs: return progress.cycle_number to continue the cycle or the next number to start a new one
daily_reward.getAdded optional available_at to each day in the response days, the Unix time when that day opens. Required for the current day in custom programs
ComponentsAdded the DailyRewardProgressWebhook and DailyRewardClaimWebhook schemas

Upgrade

  • No action is needed unless you use custom programs.
  • For a custom program, read event_data.progress, return cycle_number, and list only the current and the final day in days, with available_at set on the current day.

Need help?
Contact our integration team at [email protected]