This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

Expo Application

A universal library that provides information about the native application's ID, app name, and build version at runtime.

Android
iOS
tvOS
Web
Included in Expo Go
Recommended version:
~56.0.3

expo-application provides useful information about the native application's ID, app name, and build version at runtime.

Installation

Terminal
- npx expo install expo-application
- yarn expo install expo-application
- pnpm expo install expo-application
- bun expo install expo-application

If you are installing this in an existing React Native app, make sure to install expo in your project.

API

import * as Application from 'expo-application';

No API data file found, sorry!

Error codes

CodeDescription
ERR_APPLICATION_PACKAGE_NAME_NOT_FOUNDError code thrown by getInstallationTimeAsync and getLastUpdateTimeAsync. This may be thrown if the package information or package name could not be retrieved.
ERR_APPLICATION_INSTALL_REFERRER_UNAVAILABLEThe current Play Store app doesn't provide the installation referrer API, or the Play Store may not be installed. This error code may come up when testing on an AVD that doesn't come with the Play Store pre-installed, such as the Google Pixel 3 and Nexus 6.
ERR_APPLICATION_INSTALL_REFERRER_CONNECTIONA connection could not be established to the Google Play Store.
ERR_APPLICATION_INSTALL_REFERRER_REMOTE_EXCEPTIONA RemoteException was thrown after a connection was established to the Play Store. This may happen if the process hosting the remote object is no longer available, which usually means the process crashed. See this StackOverflow answer on RemoteException for more information.
ERR_APPLICATION_INSTALL_REFERRERGeneral default case error code for the getInstallReferrerAsync method. This error code will be thrown if an exception occurred when getting the install referrer, but the exception was none of the more precise errors. The responseCode is provided along with the error.
ERR_APPLICATION_INSTALL_REFERRER_SERVICE_DISCONNECTEDConnection to the install referrer service was lost. This error is thrown when an attempt was made to connect and set up the install referrer service, but the connection was lost. See the Android documentation for more information.