From 46e7c03872135c3cd2f04747eda04f1624b99f0e Mon Sep 17 00:00:00 2001 From: Pedro Filipe Date: Wed, 24 Jun 2015 15:56:53 +0200 Subject: [PATCH 1/3] Update offline mode readme --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 3c38de255..8cedc15dc 100644 --- a/README.md +++ b/README.md @@ -466,6 +466,25 @@ You can check if the adjust SDK is currently enabled by calling the function `isEnabled`. It is always possible to activate the adjust SDK by invoking `setEnabled` with the enabled parameter as `true`. +### 18. Offline mode + +You can put the adjust SDK in offline mode to prevent it from sending +any information to our servers. While in offline mode, all information is saved +in a file, so take care of triggering too many events while in offline mode. +You can set it to offline mode, by calling `setOfflineMode` with the parameter `true`. + +```java +Adjust.setOfflineMode(true); +``` + +When the adjust SDK is put back in online mode, all saved information is send to our servers +with the correct time information. To put it back in online mode, just call +`setOfflineMode` with the parameter `false`. + +Unlike disabling tracking, this setting is *not remembered* +bettween sessions. This means that the SDK is in online mode whenever is started, +even if the app was terminated in offline mode. + [dashboard]: http://adjust.com [releases]: https://github.com/adjust/adjust_android_sdk/releases [import_module]: https://raw.github.com/adjust/sdks/master/Resources/android/v4/01_import_module.png From b0f7281fe7173e3190bcae8f7a2fb9ad37fbf68c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uglje=C5=A1a=20Erceg?= Date: Wed, 24 Jun 2015 16:02:53 +0200 Subject: [PATCH 2/3] Fixing small typos --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8cedc15dc..8a7471961 100644 --- a/README.md +++ b/README.md @@ -227,7 +227,7 @@ config.setLogLevel(LogLevel.VERBOSE); // enable all logging config.setLogLevel(LogLevel.DEBUG); // enable more logging config.setLogLevel(LogLevel.INFO); // the default config.setLogLevel(LogLevel.WARN); // disable info logging -config.setLogLevel(LogLevel.ERROR]; // disable warnings as well +config.setLogLevel(LogLevel.ERROR); // disable warnings as well config.setLogLevel(LogLevel.ASSERT); // disable errors as well ``` @@ -411,7 +411,7 @@ Adjust.onCreate(config); You can register a listener to be notified of tracker attribution changes. Due to the different sources considered for attribution, this information can not -by provided synchronously. The simplest way is to create a single anonymous +be provided synchronously. The simplest way is to create a single anonymous listener: Please make sure to consider our [applicable attribution data From d65b77d9f35e67754b68115f7794f67d8f7fa526 Mon Sep 17 00:00:00 2001 From: Simon Kendall Date: Wed, 24 Jun 2015 17:51:55 +0200 Subject: [PATCH 3/3] copy tweak --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8a7471961..8c2626f2c 100644 --- a/README.md +++ b/README.md @@ -468,21 +468,22 @@ You can check if the adjust SDK is currently enabled by calling the function ### 18. Offline mode -You can put the adjust SDK in offline mode to prevent it from sending -any information to our servers. While in offline mode, all information is saved -in a file, so take care of triggering too many events while in offline mode. -You can set it to offline mode, by calling `setOfflineMode` with the parameter `true`. +You can put the adjust SDK in offline mode to suspend transmission to our servers, +while retaining tracked data to be sent later. While in offline mode, all information is saved +in a file, so be careful not to trigger too many events while in offline mode. + +You can activate offline mode by calling `setOfflineMode` with the parameter `true`. ```java Adjust.setOfflineMode(true); ``` +Conversely, you can deactivate offline mode by calling `setOfflineMode` with `false`. When the adjust SDK is put back in online mode, all saved information is send to our servers -with the correct time information. To put it back in online mode, just call -`setOfflineMode` with the parameter `false`. +with the correct time information. Unlike disabling tracking, this setting is *not remembered* -bettween sessions. This means that the SDK is in online mode whenever is started, +bettween sessions. This means that the SDK is in online mode whenever it is started, even if the app was terminated in offline mode. [dashboard]: http://adjust.com