报错如下:
Error message:Permission denied.
Error code:
SourceCode:
sensor.on(sensor.SensorId.GYROSCOPE, this.sensorCallback);
^
Stacktrace:
at startMonitoring (ms_sdk/src/main/ets/utils/ShakeObserver.ets:64:7)
报错如下:
Error message:Permission denied.
Error code:
SourceCode:
sensor.on(sensor.SensorId.GYROSCOPE, this.sensorCallback);
^
Stacktrace:
at startMonitoring (ms_sdk/src/main/ets/utils/ShakeObserver.ets:64:7)
1.3k 阅读
1 回答548 阅读✓ 已解决
516 阅读
参考示例demo:
以及权限授权: