Appflow.ai
Visit our websitePricingSign up for freeLog in
  • GET STARTED
    • What is Appflow.ai?
    • Quickstart - How to start working with Appflow.ai?
    • FAQ
    • Ownership and other roles
  • SDK Set-up Instructions
    • Android SDK
      • Google Play Store Credentials
        • Google Service Account Key
        • Google real-time developer notifications(RTDN)
        • FCM server key(optional)(to be updated)
      • Events (Custom events)
      • Purchases
      • Visual constructor
      • User info
      • Push notifications
    • iOS SDK
      • Specify Apple Store Keys
      • Purchases and User Info
      • Event tracking (Custom events)
      • Push Notifications Configuration
      • Visual constructor
  • IN-APP PURCHASE
    • SKU adding
  • METRICS & EVENTS
    • Calculations of Analytics
    • Terms and Descriptions
    • Purchase Events
    • In-app Events
    • Events Structure
    • End-users Attributes
    • Users' statuses
  • SUBSCRIPTION ANALYTICS
    • Dashboard
    • Configurator
    • Reports
    • A/B Testing
    • Integrations
    • Create Push-notifications
    • In-app Messages
    • Return of Advertisement
    • Funnels
    • Funnel 2.0 BETA
    • Entitlements
    • Visual Constructor
  • INTEGRATIONS
    • Adjust
    • Appsflyer
    • Mixpanel
    • Webhooks
    • Apple Search Ads Attributions
    • Branch
    • Amplitude
  • OTHERS
    • Pricing plans and important information about your payments
    • Storing your data
    • Privacy Policy
    • Terms of Use
    • Unsubscribe from Appflow.ai
Powered by GitBook
On this page

Was this helpful?

  1. SDK Set-up Instructions
  2. Android SDK

User info

SDK part to send user's attributes and user's info to Appflow.ai


You can send user information to Appflow.ai backend in the following ways

Appflow.uploadUserInfo(UserAttribute attribute, UploadUserInfoListener listener)

Example

val build = UserAttribute.Builder()
    .setName("user_name")
    .setPhone("user_phone")
    .setGender(UserGender.FEMALE)
    .setEmail("user_email")
    .setAge(18)
    .setCustomAttribute("address", "user_address")
    .setCustomAttribute("id", "user_id")
    .build()
Appflow.uploadUserInfo(build, object : UploadUserInfoListener {
    override fun onSuccess() {
    }
    override fun onFail(error: String?) {
    }
})

API Reference

UserAttribute

setName(name: String)

Set user name

setEmail(email: String

Set user email

setGender(gender: UserGender)

Set user gender

setPhone(phone: String)

Set user phone

setAge(age: String)

Set user age

setCustomAttribute(key: String, value: Any)

Set custom user attribute

UploadUserInfoListener

onSuccess()

Success callback

onFail(error: String?)

Failure callback

PreviousVisual constructorNextPush notifications

Last updated 1 year ago

Was this helpful?