GBG Developers

Guides   |   Initialising the Android SDK (Archived Version v1.0)

Initialising the Android SDK (Archived Version v1.0)

Once you have configured the Maven Repository you'll be able to initialise the SDK as shown here.

The VerifySDK.init() function is used to initialize the SDK from within the application code (for example a MainActivity.kt source code file). Here is an example fragment demonstrating how multiple SDK services can be initialized (the modules are of type com.gbg.verify.ModuleInitializer):

class MyApplication1:Application() {
    override fun onCreate(){
        VerifySDK.init(this, Config.defaultConfig(), VerifyPeople, VerifyFacematch, VerifyDocuments, VerifyLiveness, VerifyAddress)

The next step for the mobile application is to obtain an Identity Provider access code, either directly using HTTP from the mobile device, or via a server in your cloud or data centre.