const state = await BackgroundGeolocation.getState();
console.log(state)
right after I updated the configuration, I see that "startOnBoot": true. However, when I reload the App and I console.log the state where I call the .ready() method, it logs "startOnBoot": false. The Plug ins settings are not persisted? Interestingly, this prop forceReloadOnBoot is not shown in the result of BackgroundGeolocation.getState().
Steps to Reproduce
Change startOnBoot and forceReloadOnBoot to true
Reload the app
Log the plug ins state right after the .ready() method
react-native -v
): 0.73.8Expected Behavior
I want to change the configuration of the Plug In after the
.ready()
method hast been called. I want to to change these two propsActual Behavior
When I log the configuration with
right after I updated the configuration, I see that
"startOnBoot": true
. However, when I reload the App and Iconsole.log
the state where I call the.ready()
method, it logs"startOnBoot": false
. The Plug ins settings are not persisted? Interestingly, this propforceReloadOnBoot
is not shown in the result ofBackgroundGeolocation.getState()
.Steps to Reproduce
startOnBoot
andforceReloadOnBoot
to true.ready()
methodContext
Change the Plug Ins config.