IsInactive and CustomProperties permissions

Are there any implicit rules to who can write to a player's CustomProperties if their state is Inactive?

Current issue i'm running into-
Scenario 1:
1. Player A and B connect.
2. Player A disconnects and becomes Inactive
3. Player B writes some properties to Player A's CustomProperties
4. Player B disconnects and becomes inactive
5. Server closes, sending state to webhook
6. Webhooks backend shows that Player A's properties in the room data are never written to or changed beyond the time Player A disconnected.

Scenario 2:
1. Player A and B connect
2. Player B writes properties to Player A's CustomProperties
3. Both Players now disconnect
4. Server closes, sends state to webhook
5. Webhook backend shows correct data for Player A's CustomProperties in the debug json as well as the client behaving correctly.

As a potential work around I decide to redirect the SetCustomProperties to the current room instead of the individual players (adding an ID per player). This change Effectively moved this data to the Room level instead of player level and it seems to work as intended now.

Comments

  • Hi @onealexleft,

    What you observed and noted should be the current allowed behavior in Photon Servers logic.
    However, I agree there is room for change.
    Thank you for your feedback, we appreciate it. Please do not hesitate to tell us about your experience in making an async. game with Photon.
    And yes, your workaround is the way to go.
Sign In or Register to comment.