Skip to content

feat: add app name, package, version info to App plugin #72

@imhoffd

Description

@imhoffd

Feature Request

Description

Metadata about the app would be useful in the App plugin. App version code and number currently exist in the Device plugin, but make more sense in the App plugin (see #46).

Platform(s)

  • iOS
  • Android
  • Web

Preferred Solution

interface AppInfo {
  name: string;
  package: string;
  versionCode: string;
  versionNumber: string; // or maybe number
}

// App plugin
interface App {
  ...
  getInfo(): Promise<AppInfo>;
  ...
}

Alternatives

https://github.com/whiteoctober/cordova-plugin-app-version

Additional Context

This was originally a proposal for the community: capacitor-community/proposals#65

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions