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

Keyboard web plugin throws no-op error #1511

Closed
cornflakes opened this issue Mar 30, 2023 · 4 comments
Closed

Keyboard web plugin throws no-op error #1511

cornflakes opened this issue Mar 30, 2023 · 4 comments

Comments

@cornflakes
Copy link
Contributor

Bug Report

Plugin(s)

Keyboard

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 4.7.1
  @capacitor/core: 4.7.1
  @capacitor/android: 4.7.1
  @capacitor/ios: 4.7.1

Installed Dependencies:

  @capacitor/cli: 4.4.0
  @capacitor/core: 4.4.0
  @capacitor/ios: 4.4.0
  @capacitor/android: 4.4.0

Platform(s)

Web

Current Behavior

When using the Keyboard plugin, we get the following log in the console, for an app using Capacitor in a desktop web browser:
image
Error: Uncaught (in promise): Error: "Keyboard" plugin is not implemented on web

Expected Behavior

Error should not be thrown

Code Reproduction

use the keyboard plugin in a webcontext

Other Technical Details

Additional Context

@cornflakes
Copy link
Contributor Author

I have made a PR solving this issue:
#1416

@cornflakes
Copy link
Contributor Author

@ltm - Please take a look at this :-)

@cornflakes
Copy link
Contributor Author

@IT-MikeS - Please take a look at this :-)

@jcesarmobile
Copy link
Member

This is by design, when plugins don't have a web implementation they throw that error and Keyboard plugin doesn't have a web implementation, so it's not a bug.

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2023
@ionic-team ionic-team locked as resolved and limited conversation to collaborators May 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants