@modoki/engine / index / checkForUpdate
Function: checkForUpdate()
checkForUpdate(
opts):Promise<OtaCheckResult>
Fetches release.json, verifies its signature, and — if bundleName has a newer version than what's currently active — fetches that bundle's manifest and stages the update via the native plugin. Does NOT call activate() if staging fails, and never throws on network/parse/verification failure — every failure mode is a discriminated OtaCheckResult the caller can log/ignore (an OTA check failing must never crash the game that's already running fine).
Parameters
opts
Returns
Promise<OtaCheckResult>