Instant App Support #52
Answered
by
Alexey-Verkhovsky
AndreasBoehm
asked this question in
Q&A
-
I was trying fingerprintjs and fingerprintjs PRO to with a regular app and an Instant App. Does anyone have experience with that and can help me with that? |
Beta Was this translation helpful? Give feedback.
Answered by
Alexey-Verkhovsky
Apr 20, 2022
Replies: 1 comment 1 reply
-
Hey! I've tested the library on Instant apps, and what I found is that only GSF ID is unavailable. Get them with following code: val fingerprinter = FingerprinterFactory
.getInstance(applicationContext, Configuration(version = 3))
fingerprinter.getDeviceId { deviceIdResult ->
val androidId = deviceIdResult.androidId
val mediaDrmId = deviceIdResult.mediaDrmId
} You can match instances on one device by IDs, and distinguish regular app from instant app by some additional logic in instant-only modules. Hope it helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AndreasBoehm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! I've tested the library on Instant apps, and what I found is that only GSF ID is unavailable.
So you can use either Android ID or Media DRM ID for getting the ID, it will be the same.
Get them with following code:
You can match instances on one device by IDs, and distinguish regular app from instant app by some additional logic in instant-only modules.
Hope it helps!