SuperNode
Foundation

app

App information API.

app.getInfo

The asynchronous app.getInfo() method returns information about the app.

import { app } from "supernode";

console.log(await app.getInfo());

output:

{
  "packageName": "io.supernode",
  "versionName": "1.0",
  "versionCode": 1
}

Returns information from the installed SuperNode app; versionName is the user-facing version string, and versionCode is an integer used to compare versions. See App to open a native page.

On this page