Android SDK Version 0.2.0

SDK Version: 0.2.0

Data Collected by SDK Automatically

property name

Scope

SDK method

Device Locale

As part of device data

internal

Device time zone

As part of device data

internal

Application id

As part of device data

internal

Application version name

As part of device data

internal

Application version code

As part of device data

internal

SDK Version

As part of device data

internal

Notification permission status

As part of device data(authorized/not_authorized)

internal

Network type

As part of device data(wifi/mobile_data)

internal

Device model

As part of device data

internal

Device Manufacturer name

As part of device data

internal

OS version

As part of device data

internal

Telephonic carrier name

As part of device data

internal

Application instance id

As part of device data

internal(Generated by SDK)

Application first launch

Application life cycle(Auto track)

internal

Application foreground state

Application life cycle(Auto track)

internal

Application background state

Application life cycle(Auto track)

internal

Event creation time

All events

internal

Data Passed through Initialization

Property Name

Scope

SDK method

  • ZMP Account site-id

  • ZMP Account client secret

  • optIn status

  • region

  • appEnvironment

  • isLoggingEnabled

For all events and properties

 val config = ZTConfig(
            clientSecret = client-scecret,
            clientSiteId = siteId,
            isLoggingEnabled = true,
            optIn = true,
            region = ZTRegion.US,
            appEnvironment = ZTAppEnvironment.SANDBOX
        )
 ZetaClient.initialize(this, config)
  • color

  • smallIcon

  • notificationChannelId

  • notificationChanelName

  • notificationChanelDescription

Configuring the notification channel and default values

      val pushConfig = ZTNotificationConfig(
          color = Color.BLUE,
          smallIcon = R.drawable.ic_notification,
          notificationChannel = ZTNotificationChannel(
              id = "ApplicationTestChannel",
              name = "Application Test Channel",
              description = "Test Channel Description",
          )
      )
      ZTPush.setNotificationConfig(pushConfig)

Data Passed by Application

property names

Scope

SDK Method

appSetId

As part of device data

ZetaClient.user.setAppSetId(id)

advertisementId

As part of device data

ZetaClient.userManager.setAdvertisementId(id)

  • User Id

  • Name

    • First Name

    • Last Name

  • email

  • phone

  • signedUp date

  • additionalProperties

User property

ZetaClient.userManager.builder().setUid(id).submit()

  • Application Screen Name

  • Application deeplink url(optional)

  • Additional properties(optional)

Application specific

ZetaClient.event.trackScreenName(screenName = "ZetaDemoApp", deeplink = "deeplinkUrl", properties = mapOf("app_version" to BuildConfig.VERSION_NAME))

User location

Application specific

ZetaClient.event.trackLocation(
    latitude = latitude.value.toDoubleOrNull() ?: 0.0,
    longitude = longitude.value.toDoubleOrNull() ?: 0.0,
    isForeground = isForeGround.value
)

DeviceToken

As part of device data

If the application uses the SDK for push service(ZTPushService), the device token will be automatically captured.

Once the token is ready and the SDK is not yet initialized:
ZetaClient.updatePushToken(applicationContext, token)

After the SDK has been initialized:
ZetaClient.user.updatePushToken(token = "token12345")