Android Location Privacy

Your app data privacy consent dialog should allow users to opt-in to location tracking. By default, the SDK and adapters will assume that your app is running in a context which requires an opt-out for data usage for ad personalization.

When a user opts out of personalized ad tracking, the SDK will by default not collect or transmit any PII, and the MobileFuse server will automatically scrub any potentially personal information from the bidstream when any opt-out flags are set (OS level flags, US Privacy, GPP).

If you want to specifically disable location targeting within the Android SDK then you can call the opt out method as follows:

MobileFuseTargetingData.setAllowLocation(false);
MobileFuseTargetingData.allowLocation = false

Opt-in configuration

If you are required to display a consent dialog to your users before location information is used for ad personalization, then you can set the MobileFuse SDK or adapter into an opt-in mode.

To do this, set the following flag in the Android Manifest:

<meta-data android:name="com.mobilefuse.sdk.disable_user_location" android:value="true" />

Once the SDK has been configured in this mode, you can then pass the user location preferences to the MobileFuse SDK using the following calls:

// User has opted in to location-based ad personalization:
MobileFuseTargetingData.setAllowLocation(true);

// User has opted out of location-based ad personalization:
MobileFuseTargetingData.setAllowLocation(false);
// User has opted in to location-based ad personalization:
MobileFuseTargetingData.allowLocation = true

// User has opted out of location-based ad personalization:
MobileFuseTargetingData.allowLocation = false