Hey guys. Has anyone found an equivalent api on th...
# android
k
Hey guys. Has anyone found an equivalent api on the Android platform that can accomplish what Device Check on iOS does? Device Check, essentially lets you write 2 bits to a mini db on Apple’s server per device. This way, you can track if a user has used/installed your app before (the primary use case is to prevent fraud users from signing up for Uber/Lyft and continually reclaiming a new account bonus)
not kotlin but kotlin colored 4
p
Does Firebase App Check works for you?
k
Its easy to spoof app check. Its not the same level of security device check offers
p
Didn't know that, good to know. They integrate with play integrity, isn't play integrity at that level
l
You have ANDROID_ID
You can store it server side
Copy code
@SuppressLint("HardwareIds")
suspend fun retrieveAndroidId(): String = <http://Dispatchers.IO|Dispatchers.IO> {
    Settings.Secure.getString(appCtx.contentResolver, Settings.Secure.ANDROID_ID)
}