Enable3
WebsiteCommunity
  • 🚀getting started
    • What is Enable3?
    • Register and Log In
    • Admin Panel (Enable3 Account)
    • Basic Setup
  • 🪄HOW IT WORKS
    • Missions
    • Rewards & Redeem
    • Hold to Earn
    • Tap to Earn
    • Referral program
    • Web3 loyalty
  • ⚙️TECH
    • Integration
      • SDK
      • WebView
    • Endpoints
    • Callback
  • 🔵WEB3
    • Mechanics
    • Tokenomics
Powered by GitBook
On this page
  • Android
  • Step 1
  • Step 2
  • Step 3
  • iOS
  1. TECH
  2. Integration

SDK

This page provides information how to integrate native Android or iOS SDK into your mobile app.

Last updated 2 months ago

Android

Step 1

Add this line to build.gradle (app level)

dependencies {
// .. Your other dependencies
implementation("io.enable3.android.enable3androidsdk:Enable3AndroidSDK:1.0.50")
}

Step 2

Init Enable3 in your Application class or Activity class (with application context)

Enable3.init(applicationContext, "insert_user_token_here")

To get user_token your backend need to call endpoint and send it into your app.

Step 3

To open Enable3 you should call

Enable3.open(context, StartAnimation.SlideFromLeft)

You can call this code from button onClickListener etc. Pass context and animation type if you need smooth opening. Available animation types:

sealed class StartAnimation {
    data object SlideFromLeft : StartAnimation()
    data object SlideFromRight : StartAnimation()
    data object SlideFromTop : StartAnimation()
    data object SlideFromBottom : StartAnimation()
    data object None : StartAnimation()
}

iOS

Documentation coming soon

⚙️
GET JWT