Bug Description
1. Summary Provide a brief description of the bug in the SDK and its impact on app functionality.
Bug Severity Select one that applies:
-
[x] Impacts operation of app
-
[ ] Blocks current development
-
[ ] Improvement suggestion
-
[ ] Issue with documentation
-
[ ] Other
2. Steps to Reproduce
-
Launch the application on a Vega device or simulator.
-
Call the SDK method used to retrieve the device ID (e.g.,
[Insert Exact SDK Method Name, e.g., VegaDeviceInfo.getDeviceId()]) from `@amazon-devices/react-native-device-info`. -
Output or log the returned string.
3. Observed Behavior Explain what actually happened, noting any discrepancies or malfunctions.
The SDK function responsible for retrieving the unique device ID is incorrectly returning the device’s model (e.g., the hardware model identifier) instead of a unique alphanumeric identifier for the specific hardware unit.
4. Expected Behavior Describe what you expected the SDK to do under normal operation.
The function should return a proper, unique Device ID string that uniquely identifies the individual user’s hardware device, strictly differentiating it from other devices of the exact same model.
4.a Possible Root Cause & Temporary Workaround Fill out anything you have tried. If you don’t know, N/A is acceptable
Possible Root Cause: The underlying native module mapping for the SDK’s Device ID getter is likely pointing to the system property for the hardware model rather than the secure device identifier. Temporary Workaround: Currently generating a random UUID string on first app launch and storing it locally via AsyncStorage/SecureStore to mimic a persistent device ID.
Package Version: `@amazon-devices/react-native-device-info: 2.0.1758683737`
App State: Foreground
5. Example Code Snippet / Screenshots / Screengrabs Include any relevant code or component setup in React Native that can help reproduce the bug.
JavaScript
import { useEffect } from 'react';
import { View, Text } from 'react-native';
// Replace with actual Vega SDK import
import DeviceInfo from '@amazon-devices/react-native-device-info';
export const ExampleComponent = () => {
useEffect(() => {
const fetchId = async () => {
const deviceId = await DeviceInfo.getDeviceId();
// LOG OUTPUT: Returns model number (e.g., "AFTT") instead of unique ID
console.log("Retrieved Device ID:", deviceId);
};
fetchId();
}, []);
return (
<View>
<Text>Testing Device ID SDK Method</Text>
</View>
);
};