Skip to content

An Android application that showcases the capabilities of Fingerprint Identification SDK.

License

Notifications You must be signed in to change notification settings

fingerprintjs/fingerprint-device-intelligence-android-demo

Repository files navigation

Fingerprint logo

Discord server Android minAPI status Fingerprint Identification SDK version

Fingerprint’s Device Intelligence platform for Android helps you to accurately identify the devices on which your mobile app is being used. The platform also provides high-quality Smart Signals that will help you identify risky transactions before they happen. The Fingerprint Pro Demo App for Android allows you to effortlessly experience the capabilities of our device intelligence platform.

Fingerprint Pro Demo App in Google Play

Get it on Google Play

About

This repository contains the source code for the Fingerprint Pro Demo App for Android. It shall serve as a good example

  • For integrating the Fingerprint Identification SDK in your Android app, complimenting our Getting Started Guide;
  • For best practices to follow when using the Fingerprint Identification SDK in your app.

Getting started

Install the app

You can install the app using one of the following methods:

  1. Install from Google Play
  2. Download and install .apk file from the Releases page
  3. Build the app from sources

Build the app from sources

Build the app from sources in a few simple steps:

  1. Clone the repository:

    git clone https://github.com/fingerprintjs/fingerprint-device-intelligence-android-demo.git
  2. Open the cloned repository in Android Studio.

  3. Open the file app/src/main/java/com/fingerprintjs/android/fpjs_pro_demo/constants/Credentials.kt and replace the value for apiKey with your Public API Key. You can find the Public API Key in your dashboard at App Settings > API Keys.

     import com.fingerprintjs.android.fpjs_pro.Configuration
     
     object Credentials {
         val apiKey: String = "your_api_key"
     }
  4. Replace the value for endpointUrl with one of our endpoints or with your custom endpoint, as applicable.

    import com.fingerprintjs.android.fpjs_pro.Configuration
    
    object Credentials {
        val endpointUrl: String = Configuration.Region.US.endpointUrl
    }
  5. In the "Build Variants" tool window, choose a build variant that suits your needs. You can read more about all the available build variants in file app/build.gradle.kts

  6. Run the app on the selected device

Note

The debug and debugOptimized variants of the app include an icon that allows you to iteratively build the UI without making an actual request to our Fingerprint servers. And save API calls!

Fingerprint Identification SDK

Following up on the information provided in our Getting Started Guide, you might refer to this repository for an example of:

Getting the response

Examining the response

The method IdentificationProvider.getVisitorId() is called in the file HomeViewModel.kt file. The result is displayed by the EventDetailsView composable either in prettified or raw format.

License

The source code in this repository is licensed under the MIT license.

About

An Android application that showcases the capabilities of Fingerprint Identification SDK.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages