After #ready a server url is set to the according backend. However, in our usage there are repeated phases where the gps coordinates have to be sent over to the backend and others where this should not happen. Since the docs tell you the default value of "url" is undefined, our approaches were to use .setConfig({ url: undefined }) or .setConfig({ url: null }) in order to disable the transmission.
Actual Behavior
.setConfig({ url: undefined }) led to no changes at all - the url in the config remained to be the backend url previously provided.
.setConfig({ url: null }) led to the url being set to "null" (type string)
Transmission was still ongoing in both cases after using .setConfig({ url: ... })
Question
How can you stop the transfer to the server once a valid URL has been provided?
Your Environment
cordova -v
): Capacitor Projectcordova platform ls
): Capacitor ProjectPlugin config provided to
#ready
:Expected Behavior
After
#ready
a server url is set to the according backend. However, in our usage there are repeated phases where the gps coordinates have to be sent over to the backend and others where this should not happen. Since the docs tell you the default value of "url" is undefined, our approaches were to use.setConfig({ url: undefined })
or.setConfig({ url: null })
in order to disable the transmission.Actual Behavior
.setConfig({ url: undefined })
led to no changes at all - the url in the config remained to be the backend url previously provided..setConfig({ url: null })
led to the url being set to "null" (type string)Transmission was still ongoing in both cases after using
.setConfig({ url: ... })
Question
How can you stop the transfer to the server once a valid URL has been provided?