The version string to show the user, as "3.0.3 (147)" — marketing version
plus build number. The portal has no release number and shows the commit it
was built from instead, as "2026.09.22 (e42a1a2)" (commit date plus hash).
On a device this is the installed native package, read from the platform
(App.getInfo), not the version compiled into the web bundle. That
distinction is the whole point: the build number is what identifies an
artifact, so a support report that quotes it can be traced to an exact
upload, while a bundle version cannot.
Returns string|null
the version, or null when it cannot be determined — callers should
render nothing rather than substitute a placeholder. An invented number that
looks real is worse than an absent one.
Remarks
Native resolution is asynchronous, so the first render returns the
bundled value and the hook re-renders once the platform answers.
The version string to show the user, as
"3.0.3 (147)"— marketing version plus build number. The portal has no release number and shows the commit it was built from instead, as"2026.09.22 (e42a1a2)"(commit date plus hash).On a device this is the installed native package, read from the platform (
App.getInfo), not the version compiled into the web bundle. That distinction is the whole point: the build number is what identifies an artifact, so a support report that quotes it can be traced to an exact upload, while a bundle version cannot.