Troubleshooting
nitro-ui prepare fails on the nitro-core version
The package pins nitro-core 1.0.0-alpha.nightly.138.g43e09c161101, and the NitroUI CLI requires every module to resolve the same nitro-core as the SDK. Override nitro-core and nitrogen in the app's package.json as shown in Installation, then run bun install and bun run nitro-ui prepare.
modelName is iPhone or iPad
The device is newer than the model table in the installed version of the package, so modelName falls back to model and deviceYearClass is absent. deviceId still holds the machine name, such as iPhone18,3. See Device details.
deviceName is the generic model on iOS
iOS 16 and later return the generic model name unless the app has Apple's user-assigned device name entitlement.
getVendorId() returns undefined
On iOS, identifierForVendor is unavailable until the user unlocks the device for the first time after a restart. Code that runs earlier, for example from a background launch, should read it again later.
The battery reads undefined and unknown
The iOS simulator has no battery. On a device, the module turns on battery monitoring on the first read, so the values are available from the first getPowerState() call.
The power listener does not fire on subscribe
It runs only when a field changes. Read getPowerState() for the initial value; see Power state.
The first getUserAgent() call is slow
The first call loads a web view: a WKWebView on iOS, the WebView provider on Android. iOS caches the result for later calls. Call it once, early, if you need it on a hot path.
getSystemFeatures() is empty
iOS has no equivalent of Android system features, so it returns an empty array and hasSystemFeature() returns false.