Skip to content

Instant App Support #52

Discussion options

You must be logged in to vote

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:

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!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AndreasBoehm
Comment options

Answer selected by AndreasBoehm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants