• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums

Does GetEligiblePromotions trigger Automated Promotions in real-time after XP level update?

Scheduled Pinned Locked Moved Unsolved APIs
1 Posts 1 Posters 4 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gyutaelee
    wrote last edited by
    #1

    We have an Automated Promotion tied to a segment condition: experienceLevel >= 4.

    Our flow is:

    1. Server calls incrementExperiencePoints() via CloudCode → player reaches level 4
    2. Client immediately calls GetEligiblePromotions (client-side CAPI)
    3. The promotion is not returned

    However, if the player restarts the app and logs in again, GetEligiblePromotions does return the promotion correctly.

    Questions:

    1. Does GetEligiblePromotions evaluate segment conditions in real-time against current player state, or does it rely on a cached/pre-calculated segment membership?
    2. If there is a delay between incrementExperiencePoints and when the promotion becomes available via GetEligiblePromotions, how long is that delay typically?
    3. Is there a way to force immediate promotion triggering when a player's level changes mid-session?
    1 Reply Last reply
    0

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users