Mobile SDKs: Integrate Bazaarvoice into your native Android and iOS apps.
Analytics & Location
The Bazaarvoice Mobile SDKs provide access to most of the core products Bazaarvoice offers. To learn more, go to the Mobile SDK documentation home page.
Contents
This page explains how to configure the SDK to store data in a particular geographic region.
Introduction
If your application requires data to remain in a specific geographic region you can set a marker in your configuration to inform the BVAnalytics module within Bazaarvoice Android SDK. It's recommended that this be set in your Bazaarvoice Configuration File, however, if you have a need to explore the locale determination programmatically, continue reading.
Example
The code below demonstrats how to make the locale determination programmatically:
public class MyApplication extends Application { @Override public void onCreate(){ super.onCreate(); Locale defaultLocale = ...; // Grab the proper locale of the user BVSDK.builder(application, BazaarEnvironment.PRODUCTION) .analyticsDefaultLocale(defaultLocale) .build(); } }