Skip to content

Commit cf29799

Browse files
committed
Update offline mode readme
1 parent 93085b2 commit cf29799

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,26 @@ Adjust.setEnabled(false);
273273
You can verify if the adjust SDK is currently active with the method `isEnabled`. It is always possible
274274
to activate the adjust SDK by invoking `setEnabled` with the `enabled` parameter set to `true`.
275275

276+
### 11. Offline mode
277+
278+
You can put the adjust SDK in offline mode to suspend transmission to our servers,
279+
while retaining tracked data to be sent later. While in offline mode, all information is saved
280+
in a file, so be careful not to trigger too many events while in offline mode.
281+
282+
You can activate offline mode by calling `setOfflineMode` with the parameter `true`.
283+
284+
```cs
285+
Adjust.setOfflineMode(true);
286+
```
287+
288+
Conversely, you can deactivate offline mode by calling `setOfflineMode` with `false`.
289+
When the adjust SDK is put back in online mode, all saved information is send to our servers
290+
with the correct time information.
291+
292+
Unlike disabling tracking, this setting is *not remembered*
293+
bettween sessions. This means that the SDK is in online mode whenever it is started,
294+
even if the app was terminated in offline mode.
295+
276296
## Troubleshooting
277297

278298
### iOS

0 commit comments

Comments
 (0)