Offline mode
Affise.setOfflineModeEnabled(enabled: boolean)// src/index.ts:95-97
Affise.isOfflineModeEnabled(): Promise<boolean>// src/index.ts:102-104Behaviour
Section titled “Behaviour”From the JSDoc at src/index.ts:90-94:
When enabled, no network activity should be triggered by this library, but background work is not paused. When offline mode is enabled, all recorded events should be sent
Offline mode is persistent as Application lifecycle, and will be disabled with process termination automatically.
So the flag resets to false on process restart - re-enable it each launch if you need it sticky within a session.