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
        • Switching between opt-in and opt-out
        • Setting the initial state of opt-in/opt-out
          • iOS
          • Android
          • Unity
          • Cordova
          • Monaca
          • Cocos2d-x
          • React Native
          • Flutter
      • Settings regarding the collection of advertiser IDs
      • 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

Setting the initial state for opt-in/opt-out - Android¶

In your AndroidManifest.xml if you add a meta-data tag with android:name set to io.repro.android.EndUserOptInDefault and android:value set to true, that would let the user be opted in by default. Setting the value to false would let the user be opted out by default.

<meta-data
    android:name="io.repro.android.EndUserOptInDefault"
    android:value="false">
</meta-data>
  • « Setting the initial state for opt-in/opt-out - iOS
  • Setting the initial state for opt-in/opt-out - Unity »

About Us Careers Terms of Service Privacy Policy Cookie Policy

© 2022 Repro Inc.