We are building a React Native streaming app for Fire TV on Vega OS (RN 0.72, @amazon-devices/react-native-device-info 2.0.x, Vega SDK 0.23/0.24).
Problem
On Vega there is no stable unique device ID available to apps:
getUniqueId() is not implemented for Kepler and returns “unknown”
getDeviceId() returns the model (e.g. AFTCA001), the same for all devices of that model
getSerialNumber() / getInstanceId() exist in the native interface but are not documented as supported on Vega
As a workaround we generate a random ID and store it in app storage (MMKV).
When app data is lost (app update, reinstall, OS update) the same TV gets a new ID.
Our analytics (NPAW/Youbora) then counts it as a new device, so “unique devices” is much higher than real usage.
Request
Could you please provide a stable device identifier for Vega apps that:
survives app update, reinstall and app data clear
is unique per physical device
is allowed for analytics / QoE measurement (not ads)
For example, an implementation of getUniqueId() in @amazon-devices/react-native-device-info.
Questions about KeplerIdentifiers.getVendorTrackingId() (@amazon-devices/kepler-identifiers)
Could this be the recommended solution?
Does it stay the same after reinstall and app data clear?
Is it the same for all user profiles (personas) on one device, or different per profile?
Which Vega OS versions support it? (1.1 / 1.2)
Is it allowed for analytics such as unique device counting?
How often do users opt out (it then returns 0000-0000-0000-0000)? Any recommended fallback?
You’ve correctly identified the current behavior. To set expectations: Vega doesn’t expose a persistent identifier that never resets in any scenario (e.g.a DSN) - this is intentional for privacy. So there’s no ID that survives a factory reset.
The closest fit for your analytics use case is the Vendor Tracking ID:
import {KeplerIdentifiers as Identifiers} from '@amazon-devices/kepler-identifiers';
const vendorId = await Identifiers.getVendorTrackingId();
Persists through app install/uninstall cycles - you don’t store it yourself (unlike your MMKV workaround)
Vendor-specific: same value across all your apps on that device, stable across reinstalls
Resets only on factory reset (equivalent to IDFV on iOS / ANDROID_ID on Android)
This addresses your core problem: reinstalls no longer generate a new ID, so NPAW/Youbora stops over-counting unique devices. Vendor Tracking ID requires user opt-in (users are opted in by default, but can opt out). If a user has opted out, the API returns a null UUID (00000000-0000-0000-0000-000000000000) - make sure your analytics handles that case rather than treating the null UUID as a real device.
On the APIs you mentioned: getUniqueId() is not implemented on Vega (returns “Unknown” by design) - Vendor Tracking ID is the intended replacement for persistent per-device ID when porting from Android’s getUniqueIdSync(). getDeviceId() returns Model ID (shared across all devices of a model). getSerialNumber() / getInstanceId() aren’t supported for app use.
One caveat: Vendor Tracking ID’s opt-out behavior isn’t fully implemented yet (currently returns a valid UUID regardless of opt-out preference) - we’re working on it, so design with the expectation that opt-out will eventually be honored.