LJaraCastillo / native_video_view

A video player widget displayed using the platform native player (VideoView in Android and AVPlayer in iOS).
MIT License
37 stars 30 forks source link

No implementation found for method is_sensor_available on channel flutter_sensors #29

Open SilverSurgePtyLtd opened 1 year ago

SilverSurgePtyLtd commented 1 year ago

On android 13 im getting the following exception when trying to check if the device sensor is available.

Implementation:

SensorManager().isSensorAvailable(Sensors.ROTATION).then((value) {
      if(value){
        _initSensors();
      }
    }).onError((error, stackTrace) {
      print(error);
    });

Error: No implementation found for method is_sensor_available on channel flutter_sensors

SilverSurgePtyLtd commented 1 year ago

On android 13 im getting the following exception when trying to check if the device sensor is available.

Implementation:

SensorManager().isSensorAvailable(Sensors.ROTATION).then((value) {
      if(value){
        _initSensors();
      }
    }).onError((error, stackTrace) {
      print(error);
    });

Error: No implementation found for method is_sensor_available on channel flutter_sensors

I thought this was the flutter_sensors repository, please update repository link on the pub page