c19354837/react-native-system-setting

addLocationListener triggered multiple times instead of one

VishalMathimaran opened this issue · 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?

I also facing same issue, How to resolve this?

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

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