as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

expo-application

@amazon-devices/expo-application retrieves native application information such as its ID, app name, and build version at runtime.

Installation

  1. Add the JavaScript library dependency in the package.json file.

    Copied to clipboard.

     dependencies: {
         ...
         "@amazon-devices/expo-application": "~2.0.0",
         ...
    }
    
  2. Reinstall dependencies using npm install command.

Examples

Copied to clipboard.

import * as Application from '@amazon-devices/expo-application';
import React, {useEffect, useState} from 'react';
import {StyleSheet, Text, View} from 'react-native';

export const App = () => {
  const [installationTime, setInstallationTime] = useState<Date>();
  const [updateTime, setUpdateTime] = useState<Date>();

  useEffect(() => {
    Application.getInstallationTimeAsync().then(setInstallationTime);
    Application.getLastUpdateTimeAsync().then(setUpdateTime);
  }, []);

  return (
    <View style={styles.container}>
      <Text style={styles.text}>
        applicationId: {Application.applicationId}
      </Text>
      <Text style={styles.text}>
        applicationName: {Application.applicationName}
      </Text>
      <Text style={styles.text}>
        nativeApplicationVersion: {Application.nativeApplicationVersion}
      </Text>
      <Text style={styles.text}>
        nativeBuildVersion: {Application.nativeBuildVersion}
      </Text>
      <Text style={styles.text}>
        getInstallationTimeAsync: {installationTime?.toLocaleString()}
      </Text>
      <Text style={styles.text}>
        getLastUpdateTimeAsync: {updateTime?.toLocaleString()}
      </Text>
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: 'white',
  },
  text: {
    fontSize: 32,
    color: 'black',
  },
});

API reference

Check out the dedicated documentation page for info about this library, API reference and more: Official Expo documentation for expo-application.

Constants

Constant Description
applicationId The ID of the application
applicationName The human-readable name of the application that is displayed with the app's icon on the device's home screen or desktop
nativeApplicationVersion The human-readable version of the native application that may be displayed in the app store
nativeBuildVersion The internal build version of the native application that the app store may use to distinguish between different binaries

Methods

Method Description
getInstallationTimeAsync Gets the time the app was installed onto the device, not counting subsequent updates
getLastUpdateTimeAsync Gets the last time the app was updated

Supported versions

Package Version Based On @amazon-devices/react-native-kepler version
2.0.x 5.6.0 2.0.x

Additional resources

For information on additional libraries, see Supported Third-Party Libraries and Services.


Last updated: Sep 30, 2025