Plugin EcosystemSystem & OS
App Info
Retrieve application metadata such as version, build number, and bundle ID.
The AppInfo plugin provides programmatic access to application-level metadata, allowing you to fetch the current app version, build number, and package identifier across platforms.
Installation
npm install @easycord/app-infoAPI Reference
getVersion()
Fetches the semantic version string of the application.
import { AppInfo } from '@easycord/app-info';
import { useEffect, useState } from 'react';
export function VersionDisplay() {
const [version, setVersion] = useState<string | null>(null);
useEffect(() => {
async function fetchVersion() {
try {
const v = await AppInfo.getVersion();
setVersion(v);
} catch (error) {
console.error('Failed to fetch app version', error);
}
}
fetchVersion();
}, []);
return <div>App Version: {version ?? 'Loading...'}</div>;
}getBuildNumber()
Returns the internal build number of the application.
const build = await AppInfo.getBuildNumber();getBundleId()
Returns the platform-specific application identifier (e.g., com.example.app).
const bundleId = await AppInfo.getBundleId();