PluginPlatform
Describes where the plugin is running. name tells the platform, and version holds the version of the app. No permission is needed.
Example
Section titled “Example”if (ctx.platform.name === 'ios') ctx.log('info', `Running on iOS, app version ${ctx.platform.version}`);Properties
Section titled “Properties”readonly name: "web" | "ios";The platform: web for the browser and the Mac app, and ios for the iPhone app.
version
Section titled “version”readonly version: string;The version of the app.
