cordova-plugin-sensors
cordova-plugin-sensors copied to clipboard
Problem with Ionic 6 and Capacitor
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?