Skip to content
Discussion options

You must be logged in to vote

Yes, it's possible with reset: false:

BackgroundGeolocation.ready(Config(
  reset: false
  .
  .
  .
));

Your Config will be consumed only at the first install of your app. Thereafter, to change config, you can only do so via .setConfig.

This is exactly how the /example app I use for field-testing works, which contains a complex "Settings" screen that I use for driving the config. When I change something like distanceFilter, or stopOnTerminate via UI screen, I want those settings to persist and not have my default Config consumed each time .ready(config) is called.

Warning: with reset: false, tweaks to your Config supplied to .ready(config) will be ignored on an already installed app.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BrendanBasson4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants