-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #213 from adjust/v4270
Version 4.27.0
- Loading branch information
Showing
18 changed files
with
139 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
### Version 4.27.0 (29th March 2021) | ||
#### Added | ||
- Added data residency feature. Support for EU data residency region is added. You can choose this setting by calling `setUrlStrategy` method of `AdjustConfig` instance with `AdjustConfig.AdjustDataResidencyEU` parameter. | ||
- Added preinstall tracking with usage of system installer receiver on Android platform. | ||
- Added support for MSA SDK v1.0.25 to OAID plugin. | ||
|
||
#### Fixed | ||
- Fixed attribution value comparison logic which might cause same attribution value to be delivered into attribution callback on iOS platform. | ||
|
||
#### Native SDKs | ||
- [[email protected]][ios_sdk_v4.27.1] | ||
- [[email protected]][android_sdk_v4.27.0] | ||
- [[email protected]][windows_sdk_v4.17.0] | ||
|
||
--- | ||
|
||
### Version 4.26.1 (12th February 2021) | ||
#### Fixed | ||
- Fixed ambiguous API invocation error in certain Unity IDE setups. | ||
|
@@ -851,6 +867,7 @@ | |
[ios_sdk_v4.23.2]: https://github.com/adjust/ios_sdk/tree/v4.23.2 | ||
[ios_sdk_v4.24.0]: https://github.com/adjust/ios_sdk/tree/v4.24.0 | ||
[ios_sdk_v4.26.2]: https://github.com/adjust/ios_sdk/tree/v4.26.2 | ||
[ios_sdk_v4.27.1]: https://github.com/adjust/ios_sdk/tree/v4.27.1 | ||
|
||
[android_sdk_v3.5.0]: https://github.com/adjust/android_sdk/tree/v3.5.0 | ||
[android_sdk_v4.1.0]: https://github.com/adjust/android_sdk/tree/v4.1.0 | ||
|
@@ -882,6 +899,7 @@ | |
[android_sdk_v4.24.1]: https://github.com/adjust/android_sdk/tree/v4.24.1 | ||
[android_sdk_v4.25.0]: https://github.com/adjust/android_sdk/tree/v4.25.0 | ||
[android_sdk_v4.26.1]: https://github.com/adjust/android_sdk/tree/v4.26.1 | ||
[android_sdk_v4.27.0]: https://github.com/adjust/android_sdk/tree/v4.27.0 | ||
|
||
[windows_sdk_v4.12.0]: https://github.com/adjust/windows_sdk/tree/v4.12.0 | ||
[windows_sdk_v4.13.0]: https://github.com/adjust/windows_sdk/tree/v4.13.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,7 @@ Read this in other languages: [English][en-readme], [中文][zh-readme], [日本 | |
* [Google Play Services advertising identifier](#ad-gps-adid) | ||
* [Amazon advertising identifier](#ad-amazon-adid) | ||
* [Adjust device identifier](#ad-adid) | ||
* [Pre-installed trackers](#ad-pre-installed-trackers) | ||
* [Preinstalled apps](#ad-preinstalled-apps) | ||
* [Offline mode](#ad-offline-mode) | ||
* [Disable tracking](#ad-disable-tracking) | ||
* [Event buffering](#ad-event-buffering) | ||
|
@@ -83,6 +83,7 @@ Read this in other languages: [English][en-readme], [中文][zh-readme], [日本 | |
* [Disable third-party sharing](#ad-disable-third-party-sharing) | ||
* [Enable third-party sharing](#ad-enable-third-party-sharing) | ||
* [Measurement consent](#ad-measurement-consent) | ||
* [Data residency](#ad-data-residency) | ||
|
||
### Testing and troubleshooting | ||
* [Debug information in iOS](#tt-debug-ios) | ||
|
@@ -946,28 +947,76 @@ String adid = Adjust.getAdid(); | |
|
||
Information about the adid is only available after our backend tracks the app install. It is not possible to access the adid value before the SDK has been initialized and the installation of your app has been successfully tracked. | ||
|
||
### <a id="ad-pre-installed-trackers"></a>Pre-installed trackers | ||
### <a id="ad-preinstalled-apps"></a>Preinstalled apps | ||
|
||
To use the Adjust SDK to recognize users whose devices came with your app pre-installed, follow these steps: | ||
You can use the Adjust SDK to recognize users whose devices had your app preinstalled during manufacturing. Adjust offers two solutions: one which uses the system payload, and one which uses a default tracker. | ||
|
||
1. Create a new tracker in your [dashboard]. | ||
2. Set the default tracker of your `AdjustConfig`: | ||
In general, we recommend using the system payload solution. However, there are certain use cases which may require the tracker. First check the available [implementation methods](https://help.adjust.com/en/article/pre-install-tracking#Implementation_methods) and your preinstall partner’s preferred method. If you are unsure which solution to implement, reach out to [email protected] | ||
|
||
```cs | ||
AdjustConfig adjustConfig = new AdjustConfig(appToken, environment); | ||
#### Use the system payload | ||
|
||
- The Content Provider, System Properties, or File System method is supported from SDK v4.23.0 and above. | ||
|
||
- The System Installer Receiver method is supported from SDK v4.27.0 and above. | ||
|
||
Enable the Adjust SDK to recognise preinstalled apps by calling `setPreinstallTrackingEnabled` with the parameter `true` after creating the config object: | ||
|
||
|
||
```csharp | ||
adjustConfig.setPreinstallTrackingEnabled(true); | ||
``` | ||
|
||
Depending upon your implmentation method, you may need to make a change to your `AndroidManifest.xml` file. Find the required code change using the table below. | ||
|
||
<table> | ||
<tr> | ||
<td> | ||
<b>Method</b> | ||
</td> | ||
<td> | ||
<b>AndroidManifest.xml change</b> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Content Provider</td> | ||
<td>Add permission:</br> | ||
|
||
``` | ||
<uses-permission android:name="com.adjust.preinstall.READ_PERMISSION"/> | ||
``` | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>System Installer Receiver</td> | ||
<td>Declare receiver:</br> | ||
|
||
``` | ||
<receiver android:name="com.adjust.sdk.AdjustPreinstallReferrerReceiver"> | ||
<intent-filter> | ||
<action android:name="com.attribution.SYSTEM_INSTALLER_REFERRER" /> | ||
</intent-filter> | ||
</receiver> | ||
``` | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
#### Use a default tracker | ||
|
||
- Create a new tracker in your [dashboard]. | ||
- Open your app delegate and set the default tracker of your config: | ||
|
||
```csharp | ||
adjustConfig.setDefaultTracker("{TrackerToken}"); | ||
Adjust.start(adjustConfig); | ||
``` | ||
|
||
Replace `{TrackerToken}` with the tracker token you created in step 2. E.g. `{abc123}` | ||
|
||
Although the dashboard displays a tracker URL (including `http://app.adjust.com/`), in your source code you should only enter the six or seven-character token and not the entire URL. | ||
- Replace `{TrackerToken}` with the tracker token you created in step one. Please note that the dashboard displays a tracker URL (including `http://app.adjust.com/`). In your source code, you should specify only the six or seven-character token and not the entire URL. | ||
|
||
3. Build and run your app. You should see a line like the following in the log output: | ||
- Build and run your app. You should see a line like the following in your LogCat: | ||
|
||
``` | ||
Default tracker: 'abc123' | ||
``` | ||
``` | ||
Default tracker: 'abc123' | ||
``` | ||
|
||
### <a id="ad-offline-mode"></a>Offline mode | ||
|
||
|
@@ -1078,6 +1127,14 @@ Adjust.trackMeasurementConsent(true); | |
|
||
Upon receiving this information, Adjust changes sharing the specific user's data to partners. The Adjust SDK will continue to work as expected. | ||
|
||
### <a id="ad-data-residency"></a>Data residency | ||
|
||
In order to enable data residency feature, make sure to make a call to `setUrlStrategy` method of the `AdjustConfig` instance with one of the following constants: | ||
|
||
```csharp | ||
adjustConfig.setUrlStrategy(AdjustConfig.AdjustDataResidencyEU); // for EU data residency region | ||
``` | ||
|
||
## Testing and troubleshooting | ||
|
||
### <a id="tt-debug-ios"></a>Debug information in iOS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.26.1 | ||
4.27.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule sdk
updated
36 files
Submodule sdk
updated
39 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters