Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(app-shortcuts): add configuration options #456

Closed
3 of 30 tasks
robingenz opened this issue Mar 15, 2025 · 0 comments · Fixed by #459
Closed
3 of 30 tasks

feat(app-shortcuts): add configuration options #456

robingenz opened this issue Mar 15, 2025 · 0 comments · Fixed by #459
Assignees
Labels

Comments

@robingenz
Copy link
Member

Plugin(s)

  • Android Battery Optimization
  • Android Dark Mode Support
  • Android Edge-to-Edge Support
  • Android Foreground Service
  • App Review
  • App Shortcuts
  • App Update
  • Asset Manager
  • Background Task
  • Badge
  • Bluetooth Low Energy
  • Cloudinary
  • Datetime Picker
  • File Compressor
  • File Opener
  • File Picker
  • Live Update
  • Managed Configurations
  • NFC
  • Photo Editor
  • Posthog
  • Printer
  • Screen Orientation
  • Screenshot
  • Speech Recognition
  • Speech Synthesis
  • Torch
  • Zip

Current problem

Currently, you have to call the set(...) method at app start to configure the app shortcuts.

Preferred solution

There should also be the option to just configure the app shortcuts via the Capacitor configuration file.

Definitions:

/// <reference types="@capacitor/cli" />

declare module '@capacitor/cli' {
  export interface PluginsConfig {
    AppShortcuts?: {
      /**
       * The list of app shortcuts that should be set by default.
       * 
       * Only available on Android and iOS.
       * 
       * @since 7.1.0
       */
      shortcuts?: Shortcut[];
    };
  }
}

Alternative options

No response

Additional context

No response

Before submitting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants