transistorsoft / flutter_background_geolocation

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

geofence Exit event is not triggered #71

Closed yashshah16 closed 5 years ago

yashshah16 commented 5 years ago

We are using geofence.In this, first of all we are adding geofence of one location and after adding it only enter and dwelling events are triggering.As per documentation exit event should be triggered but it does not.

Your Environment

*plugin configuration: import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' as bg;

My CODE for add geofence:

//set event bg.BackgroundGeolocation.onGeofence((bg.GeofenceEvent event) { print('geofence event'); print(event); if (event.identifier == 'GYM_ZONE') { if (event.action == 'ENTER') { print("here is enter condition");
} else if (event.action == 'EXIT') { print("here is exit condition"); } else { print("here is dwelling condition"); } } else { ToastMessage.toastMessage("You are not at gym.", false); } });

//add geofence
bg.BackgroundGeolocation.addGeofence(bg.Geofence(
    identifier: "GYM_ZONE",
    radius: 200,
    latitude: locationLatitude,
    longitude: locationLongitude,
    notifyOnEntry: true,
    notifyOnExit: true,
    notifyOnDwell: true,
    loiteringDelay: 10000,
    extras: {}));

//geofence ready function
bg.BackgroundGeolocation.ready(bg.Config(
        desiredAccuracy: bg.Config.DESIRED_ACCURACY_HIGH,
        distanceFilter: 10,
        url: 'http://your.server.com/locations',
        stopOnTerminate: false,
        startOnBoot: true,
        autoSync: true,
        logLevel: bg.Config.LOG_LEVEL_VERBOSE,
        reset: true))
    .then((bg.State state) {

  bg.BackgroundGeolocation.start();

  bg.BackgroundGeolocation.startGeofences();
});

Expected Behavior

All events (ENTER, EXIT, DWELL) should be triggered.

Actual Behavior

But only ENTER and DWELL events are triggered.Exit event is not triggered.

So, can you please go through with our problems and let us know what should we have to do for solve this problems.

Thank you.

christocracy commented 5 years ago

You do not execute both #start and #startGeofences. You chose one or the other.

#start = track location + geofences #startGeofences = geofences only.

Also, the latest version is 1.0.7. You should upgrade ASAP.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

stale[bot] commented 5 years ago

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.

vishw8878 commented 3 years ago

is there any to purchase lincense key to run this service

vishw8878 commented 3 years ago

any**any need

christocracy commented 3 years ago

This plugin is fully functional in debug builds so you can try before you buy.

vishw8878 commented 3 years ago

Its not working(ongeofence ) in my Samsung phone Android 11 and My Samsung model is A30 ..please check it out

On Fri, 9 Jul 2021, 16:31 Chris Scott, @.***> wrote:

This plugin is fully functional in debug builds so you can try before you buy.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/transistorsoft/flutter_background_geolocation/issues/71#issuecomment-877101983, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUUTO2TLCFBORB6RBBBPBY3TW3JKJANCNFSM4HSZMPZA .

christocracy commented 3 years ago

You are posting on a closed issue from over two years ago. Post a new issue. See wiki Debugging.

This plugin is tested daily on the following devices:

vishw8878 commented 3 years ago

I understand that you want to say that your plugin work in every mobile device but i check by myself that it will not work in my device Samsung A30 while the same code work in my friend device it takes me 7 days to find out this unsupporting plugin issue in some devices

On Sat, 10 Jul 2021, 16:04 Chris Scott, @.***> wrote:

You are posting on a closed issue from over two years ago. Post a new issue. See wiki Debugging.

This plugin is tested daily on the following devices:

  • Nexus 4 @ 4.4.4
  • Nexus 5 @ 6.0.1
  • Motorola Moto G @ 6.0.0
  • Google Pixel @ 10
  • Google Pixel 3a @ 12
  • Samsung Galaxy S20 FE @ 11.0.0
  • Samsung J @ 6.0.1
  • Samsung A510 @ 8.0.0
  • Huawei P20 Lite (ANE-LX3) @ 8.0.0
  • XIAOMI MI A2 Lite @ 10.0.0
  • Nokia TA-1027 @ 8.0.0
  • OnePlus A5010 @ 9.0.0

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/transistorsoft/flutter_background_geolocation/issues/71#issuecomment-877614987, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUUTO2VRBWLBXK2IFSNFZ5DTXAOZZANCNFSM4HSZMPZA .

christocracy commented 3 years ago

This two year old issue is closed.

vishw8878 commented 3 years ago

Thanks for your timely response

On Sat, 10 Jul 2021, 19:22 Chris Scott, @.***> wrote:

This two year old issue is closed.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/transistorsoft/flutter_background_geolocation/issues/71#issuecomment-877641483, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUUTO2VYDYWYTPOYK2HKPKDTXBGB5ANCNFSM4HSZMPZA .