Settings regarding the collection of advertiser IDs¶
Android¶
Enabling the acquisition of advertiser IDs¶
By default the Android advertising ID (AAID) is not collected and not send to Repro servers. In order to change this default setting, the AndroidManifest.xml
file has to be changed as described below.
<manifest>
<application>
<meta-data
android:name="io.repro.android.AAIDCollectionEnabled"
android:value="true">
</meta-data>
...
</application>
</manifest>
Note
The Android Repro SDK before version 5.13.0 has the opposite default setting, collecting and submitting the AAID by default. Furthermore the Android manifest meta-data key shown above does not exist on SDKs before version 5.8.0.
Adding permissions¶
In case you target Android 13 and above, com.google.android.gms.permission.AD_ID
will have to be added to your manifest file.
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
...
</application>
</manifest>
Addition of library dependencies¶
Finally a dependency to google play services must be added to your gradle file at app/build.gradle
.
dependencies {
...other dependencies...
implementation 'io.repro:repro-android-sdk:...'
implementation 'com.google.android.gms:play-services-ads-identifier:18.2.0'
}
Note
In case you already have a dependency entry to com.google.android.gms:play-services-ads
, then the entry shown above to com.google.android.gms:play-services-ads-identifier
is not needed and should be removed.
iOS¶
The Apple advertising identifier (IDFA) is by default not collected and not send to Repro servers. In order to change this default setting, the Info.plist
file has to be changed as described below.
<dict>
<key>RPRIDFACollectionEnabled</key>
<true/>
...
</dict>
Note
The iOS Repro SDK before version 5.14.0 has the opposite default setting, collecting and submitting the IDFA by default.