The Open Anonymous Device Identifier (OAID) is a unique identifier for Android devices. The Mobile Security Alliance (MSA) recommends all Chinese-manufactured devices provide an OAID. You can use the OAID to attribute and measure devices where Google Play Services isn’t available.
The OAID plugin provides the OAID of a device. The SDK will continue to use other identifiers as well as the OAID.
Add the plugin to your app
The Adjust OAID plugin for React Native is available from npm.
$ npm install react-native-adjust-oaid --save
Use the plugin
Once you have set up the plugin, you can gather the device’s OAID. To do this, call the AdjustOaid.ReadOaid
method before starting the Adjust SDK.
import { AdjustOaid } from "react-native-adjust-oaid";AdjustOaid.readOaid();// ...Adjust.create(adjustConfig);
To stop the SDK from reading OAID values, call the AdjustOaid.doNotReadOaid()
method.
import { AdjustOaid } from "react-native-adjust-oaid";AdjustOaid.doNotReadOaid();// ...Adjust.create(adjustConfig);