Repro - Mobile Analytics for growth
日本語
Sign Up Back to Dashboard
  • System Requirements
  • Dashboard Guide
  • Development Guide
    • Signup
    • iOS/Android SDK
      • Get Started
      • Session Lifecycle
      • User ID
      • Device ID
      • User Profile
      • Event Tracking
      • Push Notification
      • NewsFeed
      • In-App Message
      • Silver Egg Recommendation Messages
      • Remote Config
      • WebView
      • Opt-out feature
      • Settings regarding the collection of advertiser IDs
        • Android
          • Enabling the acquisition of advertiser IDs
          • Adding permissions
          • Addition of library dependencies
        • iOS
      • Registering an user device into a specific audience with the help of a QR code
      • Set attribution data from Adjust to Repro
      • Set attribution data from AppsFlyer to Repro
      • Log Level
      • Verification Method
    • Web
    • Audience API
    • Audience Import(β)
    • Push API
    • User Profile API
    • User Profile Bulk Import
    • NewsFeed API
    • Deletion Targeted User Registration API
    • Booster installation guide
    • Mail(β)
  • Release Notes
  • FAQ

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.

  • « Setting the initial state for opt-in/opt-out - Flutter
  • Registering an user device into a specific audience with the help of a QR code »

About Us Careers Terms of Service Privacy Policy Cookie Policy

© 2022 Repro Inc.