Description
Trust ID is a SDK in charge of providing a unique id per device or, failing that, per application installation
#
ImplementationTo do add the following, at any location, to your build.gradle (project level) file:
and add the implementation to your build.gradle (app level) file:
#
InitializeIn your file that extends "Application()" within the "onCreate()" method you must initialize the SDK, giving a context and credentials.
#
Supports APIApi | Version | NAme |
---|---|---|
31 | Android 12 | - |
30 | Android 11 | - |
29 | Android 10 | - |
28 | Android 9.0 | Pie |
27 | Android 8.1 | Oreo |
26 | Android 8.0 | Oreo |
25 | Android 7.1 | Nougat |
24 | Android 7.0 | Nougat |
23 | Android 6.0 | Marshmallow |
22 | Android 5.1 | Lollipop |
21 | Android 5.0 | Lollipop |
20 | Android 4.4W | KitKat |
19 | Android 4.4 | KitKat |
#
PermissionsIn order for the library to work without problems, the following permissions must be added to the application. Remember: This permissions are granted from user directly, additionally to write at manifest:
Trust identify normal permission from API29 or higher
Trust identify normal permission from API29 or lower
Note 1: if storage permissions are not granted, the SDK will return a trust id per application instead of per device.
Note 2: if hardware read permission is not granted, the SDK will return a trust id per application instead of per device.
#
MethodsThis section describes the methods that the library has.
#
Get Trust ID#
Set IdentifySave a identify to be sended
#
Send IdentifySend the identify
#
Delete IdentifyDelete the saved identify
#
Save Device InfoAssign a trust id to a user DNI and bundle id
Assign a trust id to a firebase token and bundle id
Assign a trust id to a user DNI and bundle id