You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if this is more of an issue or a question, and not even sure where i should have raised this, which is why i am doing it here. I am trying to createTracker/setup a tracker with default configurations and also a remote config and even some custom global contexts. however, there are two methods i could access:
The problem i face is this: setUp receives a configurationBundle which is part of the remoteconfiguaration package, this bundle class only accepts for different configurations. There are times when the global config is not even sent when an event is logged using the tracker.. In order to avoid this, it is necessary to supply a GlobalContextConfiguration which i can do when i call createTracker. This in turn leads to another issue, where we can set the global context configuration, but we cannot set the remote config, since createTracker only takes network config.
Can anyone please suggest what i should do or how best i can use both remote config, default configs and even global config without losing data when logging?
The text was updated successfully, but these errors were encountered:
This is not just a question, but a valid issue! It is currently not possible to supply a global contexts configuration when initialising a tracker using remote configuration.
You should not be using the Snowplow.createTracker() function in case you want to set up a tracker using remote configuration. When using remote config, you can only use the Snowplow.setup() function. Currently this doesn't let you pass a global contexts configuration, but we will make it the goal of this issue to enable that.
One workaround that you may try is to add global contexts later on, after the tracker is created. In that case, you would do something like:
matus-tomlein
changed the title
[Question] How do we set up globalConfig and remoteConfig ?
Enable setting global contexts initialising a tracker using remote configuration
Jan 30, 2023
headups, i still face situations where i am missing data when logging, i tried the workaround and it also returns a boolean true when contexts are being added. Is there anything else i might be missing?
EDIT: Works fine now, just changed how i was attaching the contexts.
cc: @matus-tomlein
I am not sure if this is more of an issue or a question, and not even sure where i should have raised this, which is why i am doing it here. I am trying to createTracker/setup a tracker with default configurations and also a remote config and even some custom global contexts. however, there are two methods i could access:
snowplow-android-tracker/snowplow-tracker/src/main/java/com/snowplowanalytics/snowplow/Snowplow.java
Lines 75 to 85 in bbc9919
OR
snowplow-android-tracker/snowplow-tracker/src/main/java/com/snowplowanalytics/snowplow/Snowplow.java
Lines 184 to 196 in bbc9919
The problem i face is this:
setUp
receives aconfigurationBundle
which is part of theremoteconfiguaration
package, this bundle class only accepts for different configurations. There are times when the global config is not even sent when an event is logged using the tracker.. In order to avoid this, it is necessary to supply a GlobalContextConfiguration which i can do when i callcreateTracker
. This in turn leads to another issue, where we can set the global context configuration, but we cannot set the remote config, sincecreateTracker
only takes network config.Can anyone please suggest what i should do or how best i can use both remote config, default configs and even global config without losing data when logging?
The text was updated successfully, but these errors were encountered: