Skip to content

PluginPlatform

Describes where the plugin is running. name tells the platform, and version holds the version of the app. No permission is needed.

if (ctx.platform.name === 'ios') ctx.log('info', `Running on iOS, app version ${ctx.platform.version}`);
readonly name: "web" | "ios";

The platform: web for the browser and the Mac app, and ios for the iPhone app.


readonly version: string;

The version of the app.