HotupdaterHot Updater
React Native API

getCrashHistory

Read the artifact IDs rejected after a crash and automatic rollback.

Usage

Use hotUpdater.getCrashHistory() in a support log or debug screen to inspect artifacts that crashed and triggered automatic rollback.

import { hotUpdater } from "./hotUpdater";

const crashedArtifacts = hotUpdater.getCrashHistory();
console.log("Rejected artifact IDs:", crashedArtifacts);

Return value

getCrashHistory(): string[]

Each value matches the Console's Advanced Artifact ID. It is not the update ID returned by getBundleId(). An empty array means the device has no recorded crashed artifacts.

The getter is synchronous and reads local history without making a network request. Recorded artifacts are rejected if the device attempts to install them again. clearCrashHistory() clears that rejection history for a controlled retry.

The list also holds an artifact whose launch ended before the first render, until a later session retries it once. See automatic rollback.

Native bundle loading starts crash detection. Configure init to observe the completed launch through onNotifyAppReady and client plugins. See automatic rollback for the recovery lifecycle.

On this page