react-native-system-setting icon indicating copy to clipboard operation
react-native-system-setting copied to clipboard

addLocationListener triggered multiple times instead of one

Open VishalMathimaran opened this issue 3 years ago • 3 comments

Usage :- this.locationListener = SystemSetting.addLocationListener( async (locationEnabled) =>{ if(!locationEnabled){ console.log("Location is turned off in between"); await this.getLocationAccess(); } } ); The logs are printing multiple times...How to prevent this effect?

VishalMathimaran avatar Feb 14 '21 12:02 VishalMathimaran

I also facing same issue, How to resolve this?

pradeepanCodetez avatar Jun 15 '22 06:06 pradeepanCodetez

is this issue Solved? I also facing same issue, How to resolve this?

vishnu390 avatar Dec 30 '22 12:12 vishnu390

I had the same issue, but i resolved it hacky with a debounce function... not ideal but it works

Asscher avatar Mar 29 '23 16:03 Asscher