eddieowens / react-native-boundary

Native implementation of geofencing/region monitoring

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement Dwell/Visit events

nmussy opened this issue · comments

It'd be nice to have access to information about longer stays. Android reports it via another event, DWELL events. iOS uses another API however, CLVisit.

Android and iOS also handle throttling differently. Android sets a loiteringDelay on initialization, while iOS reports the duration via the arrivalDate and departuredate properties.

commented

I add this feature on my local branch, but I figure out a simple way:
1 - define how long user must stay on "boundary" after entering to dispatch the dwell.
2 - if your time reach before user exit the "boundary" is your dwell