Push Device Status Data

This data set contains push devices associated with the company's account.

How much data is retained?

All data is retained unless it has been specifically purged.

What data can be pulled?

Column NameTypeNullableDefaultComment
DEVICE_IDNUMBER(38,0)FALSENULLUnique id of the device
TENANT_KEYVARCHAR(16777216)FALSENULLVibes ID used to identify a tenant that is associated with the individual
APP_IDVARCHAR(40)TRUENULLID of the mobile app
VIBES_DEVICE_IDVARCHAR(255)TRUENULLVibes unique identifier for each device
DEVICE_OSVARCHAR(255)TRUENULLOperating system of the push device (Android or IOS)
PERIOD_STARTTIMESTAMP_TZ(9)TRUENULLStart of device validity period
PERIOD_ENDTIMESTAMP_TZ(9)TRUENULLEnd of device validity period
PERSON_KEYVARCHAR(40)TRUENULLVibes UID for the recipient
PUSH_TOKENVARCHAR(16777216)TRUENULLAndroid or IOS Push token
OS_VERSIONVARCHAR(16777216)TRUENULLVersion of the operating system
SDK_VERSIONVARCHAR(16777216)TRUENULLVersion of the SDK
LAST_REGISTERED_DATETIMESTAMP_TZ(9)TRUENULLLast Registered
HARDWARE_MAKEVARCHAR(255)TRUENULLMake of user’s device
HARDWARE_MODELVARCHAR(255)TRUENULLModel number of user’s device
APP_VERSIONVARCHAR(255)TRUENULLVersion of the app user is on
ADVERTISING_IDVARCHAR(255)TRUENULLAdvertising ID
LOCATION_LATFLOATTRUENULLLatitude (at registration)
LOCATION_LONGFLOATTRUENULLLongitude (at registration)
LOCALEVARCHAR(255)TRUENULLLocale
LAST_OPENED_ATTIMESTAMP_TZ(9)TRUENULLWhen the user opened the app
DW_CREATED_ATTIMESTAMP_TZ(9)TRUENULLWhen this person was added
DW_UPDATED_ATTIMESTAMP_TZ(9)TRUENULLWhen it was last updated
PERIOD_START_TTZTIMESTAMP_TZ(9)TRUENULLDate/time of the start of the validity period
PERIOD_END_TTZTIMESTAMP_TZ(9)TRUENULLDate/time of the end of the validity period
PERIOD_START_DATE_DIM_KEYTIMESTAMP_TZ(9)TRUENULLDate of the start of the validity period
PERIOD_END_DATE_DIM_KEYTIMESTAMP_TZ(9)TRUENULLDate of the end of the validity period
TIMEZONEVARCHAR(16777216)TRUENULLTimezone of the device
PUSH_STATUSVARCHAR(16777216)TRUENULLWas this person active in the app in the last 180 days? Values:
ACTIVE, INACTIVE, or UNINSTALLED
PUSH_ADDRESSABLEVARCHAR(16777216)TRUENULLDo we have a push token for this person? (ACTIVE/INACTIVE)
EXTERNAL_PERSON_IDVARCHAR(16777216)TRUENULLCustomer's unique identifier as assigned by an external system. It must be associated at registration or through an API integration.

Sample Query

–- A query that will pull push messages from yesterday
SELECT
EXTERNAL_PERSON_ID
,PERSON_KEY
,DEVICE_ID
,APP_ID
,VIBES_DEVICE_ID
,DEVICE_OS
,PUSH_TOKEN
,OS_VERSION
,SDK_VERSION
,LAST_REGISTERED_DATE
,HARDWARE_MAKE
,HARDWARE_MODEL
,APP_VERSION
,TIME_ZONE
,LAST_OPENED_AT
FROM PUSH_DEVICE
WHERE CAST(DW_CREATED_AT AS DATE) >= CAST(DATEADD(day,-1, CURRENT_DATE()) AS DATE)
AND CAST(DW_CREATED_AT AS DATE) < CAST(CURRENT_DATE() AS DATE)