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

bug: web only plugins don't fire listeners on native apps #4331

Closed
jcesarmobile opened this issue Mar 12, 2021 · 1 comment · Fixed by #4488
Closed

bug: web only plugins don't fire listeners on native apps #4331

jcesarmobile opened this issue Mar 12, 2021 · 1 comment · Fixed by #4488

Comments

@jcesarmobile
Copy link
Member

jcesarmobile commented Mar 12, 2021

Bug Report

Capacitor Version

3 RC

Platform(s)

ios
android

Current Behavior

web only plugins such as Motion don't fire events on native platforms

Expected Behavior

to fire the events they registered on native platforms

Code Reproduction

const orientationHandler = await Motion.addListener('orientation', event => {
    console.log('orientation', event);
});

Other Technical Details

npm --version output:

node --version output:

pod --version output (iOS issues only):

Additional Context

can be tested on test app, motion page.
The motion plugin only works on web, but not no iOS nor Android.

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 11, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants