Skip to content

[Help Wanted]: startGeofences vs start #1546

@renrutsirhc

Description

@renrutsirhc

Required Reading

  • Confirmed

Plugin Version

4.16.12 (also tested with 4.17.0)

Mobile operating-system(s)

  • iOS
  • Android

Device Manufacturer(s) and Model(s)

Samsung Galaxy s25+

Device operating-systems(s)

Android 14

What do you require assistance about?

Hi @christocracy,

The app I'm working on is a workplace sign-in solution. We utilise geofences for a site such as an office/university/construction site etc. to automatically check workers in when they arrive on site and check them out when they leave. Our two main requirements are accuracy of checkin/checkout detection and battery life.

My testing is a mixture of wandering around my neighbourhood on foot and commuting by train (I have geofences set up on various stations on the line I take to work).

I've been having some mixed results from the plugin:

  • startGeofences with geofenceModeHighAccuracy is excellent - no issues
  • start is also excellent - no issues
  • startGeofences with geofenceModeHighAccuracy disabled - performs quite poorly. The symptoms of the problem are that it is unreliable as to whether the geofence events are fired (I'm using all three - ENTER, DWELL, EXIT ). ENTER is the most reliable of the three and fires most of the time. DWELL is rarely fired. EXIT is sometimes fired but often quite a long time/distance outside the geofence. I have noticed also in this mode that the plugin never enters the 'Moving' state (there is nothing in the logs showing the change and the onMotionChange event handler is also not fired. I can also see that there is no ActivityChange from still to walking/similar occurring (both in the logs and the event handlers not firing).

My questions based on all this are:

  1. Is this normal behaviour for startGeofences with geofenceModeHighAccuracy disabled?
  2. If it is, with regards to battery life, which is likely to be more efficient? startGeofences with geofenceModeHighAccuracy or start

[Optional] Plugin Code and/or Config

[Optional] Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions