OAID collection
Table of content
Supported devices:
Manufacturer | OS version |
---|---|
Huawei | HMS 2.6.2 |
Xiaomi | MIUI 10.2 |
Vivo | Android 9 |
OPPO | Color OS 7.0 |
Lenovo | ZUI 11.4 |
Samsung, Meizu, Nubia, ZTE, ASUS, OnePlus, Black shark, Motorola, Freeme OS | Android 10\ |
Supported MSA library version: 1.0.23
Adding to your project
module build.gradle
Download AAR provided by the MSA to your module libs folder Note: MSA AAR requires min API level 21
implementation 'com.appsflyer:oaid:6.1.2'
implementation files('libs/oaid_sdk_1.0.23.aar')
Standalone usage
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
Thread {
val info = OaidClient(this, 1, TimeUnit.SECONDS).fetch()
if (info != null) {
println(info.id)
val lat = info.lat
if (lat != null) println(lat)
}
}.start()
}
}
Important
Time to fetch oaid is around 10 - 1000 ms
When submitting an issue please specify your AppsFlyer sign-up (account) email , your app ID , production steps, logs, code snippets and any additional relevant information.