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

Problem with Ionic 6 and Capacitor #20

Open
Frafilips opened this issue Jul 21, 2021 · 0 comments
Open

Problem with Ionic 6 and Capacitor #20

Frafilips opened this issue Jul 21, 2021 · 0 comments

Comments

@Frafilips
Copy link

I use that plugin as it's showed in the documentation of Ionic for Angulars app.
I importSensors from @ionic-native/sensor/npx, i put it into app.module in the providers and i import it also in the component.ts i want to use sensors.
When i call the enableSensor i receive an invalid callback like this, even if i wait for platform.ready(), but if i try to click the button with the enableSensor attached to the click another 2 or 3 times the enable works and getState return the value, why enableSensor works like this?

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

No branches or pull requests

1 participant