Device info
getRandomUserId
Section titled “getRandomUserId”@objc public static func getRandomUserId() -> String?— AffiseAttributionLib/Classes/Affise.swift:163-170.
Verbatim:
Affise.getRandomUserId()Special return values
Section titled “Special return values”11111111-1111-1111-1111-111111111111— Affise SDK is not initialized.22222222-2222-2222-2222-222222222222— no valid methods to retrieve an id for the current device.
Constants: AffiseError.UUID_NOT_INITIALIZED and AffiseError.UUID_NO_VALID_METHOD — AffiseAttributionLib/Classes/errors/AffiseError.swift:14-15.
getRandomDeviceId
Section titled “getRandomDeviceId”@objc public static func getRandomDeviceId() -> String?— AffiseAttributionLib/Classes/Affise.swift:175-182.
Verbatim:
Affise.getRandomDeviceId()Same special-value behavior as getRandomUserId().
getProviders
Section titled “getProviders”Two entry points:
// Swiftpublic static func getProviders() -> [ProviderType: Any?]// Obj-C@objc(getProviders) public static func getProvidersObjc() -> NSDictionary— AffiseAttributionLib/Classes/Affise.swift:187-197.
Verbatim:
let providers: [ProviderType: Any?] = Affise.getProviders()let key = ProviderType.AFFISE_APP_TOKENlet value = providers[key]ProviderType categories
Section titled “ProviderType categories”@objc public enum ProviderType: Int — AffiseAttributionLib/Classes/parameters/ProviderType.swift:4. Cases at lines 5-118; string mapping in public var provider: String starting at line 120.
Attribution (from README)
Section titled “Attribution (from README)”AFFISE_APP_ID, AFFISE_PKG_APP_NAME, AFF_APP_NAME_DASHBOARD, APP_VERSION, APP_VERSION_RAW, STORE, TRACKER_TOKEN, TRACKER_NAME, FIRST_TRACKER_TOKEN, FIRST_TRACKER_NAME, LAST_TRACKER_TOKEN, LAST_TRACKER_NAME, OUTDATED_TRACKER_TOKEN, INSTALLED_TIME, FIRST_OPEN_TIME, INSTALLED_HOUR, FIRST_OPEN_HOUR, INSTALL_FIRST_EVENT, INSTALL_BEGIN_TIME, INSTALL_FINISH_TIME, REFERRAL_TIME, CREATED_TIME, CREATED_TIME_MILLI, CREATED_TIME_HOUR, UNINSTALL_TIME, REINSTALL_TIME, LAST_SESSION_TIME, CONNECTION_TYPE, CPU_TYPE, HARDWARE_NAME, NETWORK_TYPE, DEVICE_MANUFACTURER, PROXY_IP_ADDRESS, DEEPLINK_CLICK, DEVICE_ATLAS_ID, AFFISE_DEVICE_ID, AFFISE_ALT_DEVICE_ID, ANDROID_ID, ANDROID_ID_MD5, MAC_SHA1, MAC_MD5, GAID_ADID, GAID_ADID_MD5, OAID, OAID_MD5, ALTSTR_ADID, FIREOS_ADID, COLOROS_ADID, REFTOKEN, REFTOKENS, REFERRER, USER_AGENT, MCCODE, MNCODE, ISP, REGION, COUNTRY, LANGUAGE, DEVICE_NAME, DEVICE_TYPE, OS_NAME, PLATFORM, SDK_PLATFORM, API_LEVEL_OS, AFFISE_SDK_VERSION, OS_VERSION, RANDOM_USER_ID, AFFISE_SDK_POS, TIMEZONE_DEV, AFFISE_EVENT_TOKEN, LAST_TIME_SESSION, TIME_SESSION, AFFISE_SESSION_COUNT, LIFETIME_SESSION_COUNT, AFFISE_DEEPLINK, AFFISE_PART_PARAM_NAME, AFFISE_PART_PARAM_NAME_TOKEN, AFFISE_EVENT_NAME, AFFISE_APP_TOKEN, LABEL, AFFISE_SDK_SECRET_ID, UUID, AFFISE_APP_OPENED, PUSHTOKEN, PUSHTOKEN_SERVICE, IS_EMULATOR.
AdService module
Section titled “AdService module”AD_SERVICE_ATTRIBUTION.
Advertising module
Section titled “Advertising module”ADID.
Google module (new in 1.7.8)
Section titled “Google module (new in 1.7.8)”ODM_INFO → odm_info (AffiseAttributionLib/Classes/parameters/ProviderType.swift:108, mapped at :225). Contributed by the Google module from Google’s On-Device Conversion Measurement SDK. Not listed in the README’s per-module ProviderType collection, but present in the enum and in the dictionary returned by getProviders() when the module is linked.
AffiseAttributionLib/Classes/parameters/ProviderType.swift:5-118 contains additional cases beyond those listed in the README, including ODM_INFO, REFERRER_INSTALL_VERSION, REFERRER_CLICK_TIME, REFERRER_CLICK_TIME_SERVER, REFERRER_GOOGLE_PLAY_INSTANT, AFFISE_EVENTS_COUNT, AFFISE_SDK_EVENTS_COUNT, AFFISE_METRICS_EVENTS_COUNT, AFFISE_INTERNAL_EVENTS_COUNT, IS_ROOTED, OS_AND_VERSION, DEVICE, and BUILD. These may appear in the dictionary returned by getProviders().
isFirstRun
Section titled “isFirstRun”public static func isFirstRun() -> Bool— AffiseAttributionLib/Classes/Affise.swift:202-204. (Not @objc.)
Verbatim:
Affise.isFirstRun()