When is it safe to send application state changes?

Last Updated: Release 4.3


The service doesn't receive my client-side updates to application state; it never receives the callback unless I increase the timeout value.

To determine when I can start to write to application state, I listen to the CONNECTED_CHANGED event, but perhaps there is some other event I should be monitoring?

How do I know when it is safe to start sending state changes to the service from the client?


Before it is safe to read and write from application state, set up the application to listen for the IS_STATE_INITIALIZED event, as described here.


Use the callback to IS_STATE_INITIALIZED as the entry point to interact with application state.

Use CONNECTED_CHANGED for reporting changes in the state of the connection.

Click here for a list of the most common connection events for which you can listen.


April 11, 2017