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 - Flutter¶

iOS Platform¶

Please open the info.plist of your app.

../../../_images/10_ios_open_plist.png

Choose Add Row

../../../_images/11_ios_add_row.png

Create a key named RPREndUserOptInDefault with type Boolean. Set the value to YES for default opt-in and to NO for default opt-out.

../../../_images/12_ios_set_key_and_type.png

Android Platform¶

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 - React Native
  • Settings regarding the collection of advertiser IDs »

About Us Careers Terms of Service Privacy Policy Cookie Policy

© 2022 Repro Inc.