Repro - Mobile Analytics for growth
日本語
Resources
Growth Hack Journal (JA)
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
      • UX Optimizer (Beta version)
      • 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
      • Set attribution data from Ajdust 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 API
  • Release Notes
  • FAQ

Opt-out feature¶

Please use the opt-out feature, if you want to disable data collection and in-app messages by the Repro SDK. In case of opt-out, the SDK will behave like described below.

  • Sessions won't start.

  • No data will be send to the Repro servers.

  • In-app messages won't be presented.

Note

  • Opt-out setting is not bound to a user account but instead bound to the device. If one user owns multiple devices he will have to opt-out on all devices.

  • If a push notification token has already been transmitted to Repro while opted in, even after a opt-out push notifications can be send to that device via the Repro console. Please guide the user to disable their push notification via the system settings if you wish to completely isolate the user in case of an opt-out.

  • Please set the user ID, the user profile, tracking events and push notification tokens after the opt-in. These values will be ignored while in opt-out state.

Switching between opt-in and opt-out¶

You may use the optIn API to set the opt-in/opt-out state. Passing true as argument will set let the user opt-in. Likewise passing false will set the state to opt-out.

[Repro optIn:NO];
Repro.optIn(false)
Repro.optIn(endUserOptedIn: false)
Repro.optIn(false);
ReproCpp::optIn(false);
Repro.OptIn (false);
Repro.optIn(false);
Repro.optIn(false);
await Repro.optIn(false);

Note

  • The state set by optIn will be preserved and is effective from now on.

  • A session will start when the state switches from opt-out to opt-in.

Setting the initial state of opt-in/opt-out¶

The initial opt-in state can be set via info.plist on iOS or AndroidManifest.xml on Android. If nothing is defined in these files, the default state will be opt-in.

  • iOS
  • Android
  • Unity
  • Cordova
  • Monaca
  • Cocos2d-x
  • React Native
  • Flutter

Note

  • The default state will be used until the optIn API is called.

  • « WebView
  • Setting the initial state for opt-in/opt-out - iOS »

About Us Careers Terms of Service Privacy Policy Cookie Policy

© 2020 Repro Inc.