API Documentation
/
Frontend
/
Android
/
Hawcx Android SDK with Smart Connect

Hawcx Android SDK with Smart Connect

Revolutionary next-generation passwordless authentication powered by Hawcx Smart Connect technology

Overview

Hawcx SDK delivers revolutionary Smart Connect technology - the most intuitive passwordless authentication ever created for Android applications. Smart Connect intelligently handles both sign up and sign in through a single, unified interface, eliminating decision fatigue while maintaining enterprise-grade security.

Smart Connect Technology

One-click intelligent authentication that automatically determines user context

Contextual Intelligence

No more "Sign Up" vs "Sign In" confusion - just one smart entry point

Seamless Cross-Platform

Smart Connect maintains user context across all devices and platforms

Web Login Approval

Allow users to approve web logins from their mobile device

Enterprise-Grade Security

Revolutionary security with consumer-grade simplicity

Architecture

Loading diagram...

Quick Start

dependencies {
    implementation 'com.hawcx:hawcx-android-sdk:4.0.0'
}
dependencies {
    implementation("com.hawcx:hawcx-android-sdk:4.0.0")
}
  1. Download the latest hawcx-sdk-4.0.0.aar
  2. Copy to your project's libs directory
  3. Add to your module's build configuration:
dependencies {
    implementation files('libs/hawcx-sdk-4.0.0.aar')
}
import com.hawcx.internal.HawcxSDK

class MainApplication : Application() {
    companion object {
        lateinit var hawcxSdkInstance: HawcxSDK
            private set
    }

    override fun onCreate() {
        super.onCreate()
        
        // Initialize Hawcx SDK with your project API key
        hawcxSdkInstance = HawcxSDK(
            context = this.applicationContext,
            projectApiKey = "YOUR_API_KEY"
        )
    }
}

Don't forget to register your Application class in the AndroidManifest.xml:

<application
    android:name=".YourApplication"
    ...>
    <!-- Activities and other components -->
</application>

Core Features

Troubleshooting

Error Codes

Error CodeDescription
FINGERPRINT_ERRORFailed to generate device fingerprint
KEYCHAIN_SAVE_FAILEDFailed to save data to Android Keystore
CLIENT_CRYPTO_ERRORCryptographic operation failed on device
AUTH_INIT_FAILEDAuthentication initialization failed
OTP_VERIFICATION_FAILEDInvalid or expired OTP
DEVICE_VERIFICATION_FAILEDDevice registration verification failed
CIPHER_VERIFICATION_FAILEDLogin cipher verification failed
NETWORK_ERRORNetwork connectivity issue or request timeout
INTERNAL_STATE_ERRORSDK internal state corruption
MISSING_DEVICE_TOKEN_SESSIONSession token missing during flow
UNKNOWN_ERRORUnexpected error occurred
Error CodeDescription
INVALID_PIN7-digit PIN is invalid or expired
FAILED_APPROVEWeb login approval failed
NETWORK_ERRORNetwork connectivity issue
UNKNOWN_ERRORUnexpected error during web login

Support