transistorsoft / flutter_background_geolocation

Sophisticated, battery-conscious background-geolocation & geofencing with motion-detection
https://www.transistorsoft.com/shop/products/flutter-background-geolocation
Other
643 stars 237 forks source link

How to get geofence only #249

Closed niypoo closed 4 years ago

niypoo commented 4 years ago

I only used Geofence and Headless in android , Is there any way to only load necessary file for geoFence , and is motion detection permission is required in geoFence !

christocracy commented 4 years ago

Is there any way to only load necessary file for geoFenc

I don't know what you mean by "necessary file".

and is motion detection permission is required in geoFence !

No.

niypoo commented 4 years ago

only Geofence Library file -like geofence GitHub repository only for geofence- . I'm power the geofence like that

//start geoFence
    bg.BackgroundGeolocation.ready(
      Config(
        enableHeadless: true,
        stopOnTerminate: false,
        startOnBoot: true,
        geofenceInitialTriggerEntry: false,
      ),
    ).then(
      (state) {
        // engage geofences-only mode:
        BackgroundGeolocation.startGeofences();
      },
    );

and I ask to give the motion detection permission

christocracy commented 4 years ago

only Geofence Library file -like geofence GitHub repository only for geofence-

No. You import the plugin the same, regardless if only using geofences-only.

and I ask to give the motion detection permission

See API docs Config.disableMotionActivityUpdates.