# Device Info

#### JavaScript Function:

We’ve provided the JavaScript function `twinr_device_info()` to allow you to easily access the device's metadata. This can be helpful for debugging, analytics, or customizing the app experience based on device specifications.

#### Usage

To fetch the device information from within the app, simply call the `twinr_device_info()` function in your website’s JavaScript.

```
// Trigger device info request
twinr_device_info().then((deviceInfo) => {
  console.log(deviceInfo);
});

// Or use await.
var deviceInfo = await twinr_device_info();
```

#### Example Output

```javascript
{
    "platform": "Android",
    "appId": "com.twinr.myapp",
    "appVersion": "3.4.1",
    "language": "en",
    "model": "Pixel 6",
    "os": "Android",
    "osVersion": "12",
    "timeZone": "Asia/Kolkata",
    "pushToken": "abc123def456ghi789"
}
```
