You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
To use the Adjust SDK to recognize users whose devices came with your app pre-installed, follow these steps:
952
+
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.
952
953
953
-
1. Create a new tracker in your [dashboard].
954
-
2. Set the default tracker of your `AdjustConfig`:
954
+
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]
- The Content Provider, System Properties, or File System method is supported from SDK v4.23.0 and above.
959
+
960
+
- The System Installer Receiver method is supported from SDK v4.27.0 and above.
961
+
962
+
Enable the Adjust SDK to recognise preinstalled apps by calling `setPreinstallTrackingEnabled` with the parameter `true` after creating the config object:
963
+
964
+
965
+
```csharp
966
+
adjustConfig.setPreinstallTrackingEnabled(true);
967
+
```
968
+
969
+
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.
- Open your app delegate and set the default tracker of your config:
1008
+
1009
+
```csharp
958
1010
adjustConfig.setDefaultTracker("{TrackerToken}");
959
-
Adjust.start(adjustConfig);
960
1011
```
961
1012
962
-
Replace `{TrackerToken}` with the tracker token you created in step 2. E.g. `{abc123}`
963
-
964
-
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.
1013
+
- 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.
965
1014
966
-
3. Build and run your app. You should see a line like the following in the log output:
1015
+
- Build and run your app. You should see a line like the following in your LogCat:
Upon receiving this information, Adjust changes sharing the specific user's data to partners. The Adjust SDK will continue to work as expected.
1080
1129
1130
+
### <aid="ad-data-residency"></a>Data residency
1131
+
1132
+
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:
1133
+
1134
+
```csharp
1135
+
adjustConfig.setUrlStrategy(AdjustConfig.AdjustDataResidencyEU); // for EU data residency region
1136
+
```
1137
+
1081
1138
## Testing and troubleshooting
1082
1139
1083
1140
### <aid="tt-debug-ios"></a>Debug information in iOS
0 commit comments