You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: