Skip to content

fix: development markers land in production; cohort response parsing - #2

Open
Zander Brumbaugh (ZanderBrumbaugh) wants to merge 1 commit into
mainfrom
fix/dev-markers-and-cohort-response
Open

Zander Brumbaugh (ZanderBrumbaugh) wants to merge 1 commit into
mainfrom
fix/dev-markers-and-cohort-response

Conversation

@ZanderBrumbaugh

Copy link
Copy Markdown

Problem

  1. Development markers land in production. /sdk/v1/markers (and /sdk/v1/cohorts/membership) ignore the environment header and pick the environment from isstudio. Since 89b9b53 removed the studio environment, isstudio is always false, so every Unity build configured for Development sends its markers to production and checks cohorts against production.
    Verified against api.gamebeast.gg: the same marker with environment: development lands in production with isstudio: false and in development with isstudio: true.
  2. Cohort checks always fail to parse. The membership endpoint now returns { "cohortExists": bool, "users": [...] }, but the SDK expected a bare array.

Fix

  • isstudio = true for every alias except production, matching the Unreal (ToLegacyIsStudio) and Godot (GbEnvironment.is_studio) SDKs.
  • Cohort membership accepts both the current object shape and the legacy array.

Tested

Photon Fusion Starter sample on Unity 6000.3.18f1: development markers now appear in the development environment's event list; cohort checks resolve.

Made with Cursor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant