pmwisdom/cordova-background-geolocation-services

Coming Back to Foreground Causes "Maximum call stack size exceeded" error

Opened this issue · 0 comments

I have the background geolocation plugin and the foreground geolocation plugin calling the same function (I want them to do essentially the same thing) and, for the most part, it works. However, when I come back from background geolocation, the app will run for about 6-7 seconds before freezing and then throwing the "Uncaught RangeError: Maximum call stack size exceeded". Is there a certain way that I am supposed to come back from background mode so that I can fluidly switch between Background and Foreground?