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
Depending on your app’s network stack, you may only need one plugin. If your app uses multiple clients, you can install more than one.
169
+
170
+
## Step 4: Enable debug mode
171
+
172
+
By default, Signals stores captured data on the device and doesn't forward it to Segment. This process prevents unnecessary bandwidth use and helps support privacy compliance requirements.
173
+
174
+
To view captured signals in the Event Builder and create event generation rules, you need to enable `debugMode`. This setting temporarily lets the SDK send signal data to Segment while you're testing.
175
+
176
+
> warning ""
177
+
> Only enable `debugMode` in development environments. Avoid using `debugMode` in production apps.
178
+
179
+
You can enable `debugMode` in one of two ways.
180
+
181
+
### Option 1: Use build flavors
182
+
183
+
Configure `debugMode` at build time using [Android product flavors](https://developer.android.com/build/build-variants#product-flavors){:target="_blank"}.
184
+
185
+
1. In your `build.gradle` file, define two flavors:
186
+
187
+
```groovy
188
+
android {
189
+
...
190
+
productFlavors {
191
+
prod {
192
+
buildConfigField "boolean", "DEBUG_MODE", "false"
193
+
}
194
+
dev {
195
+
buildConfigField "boolean", "DEBUG_MODE", "true"
196
+
}
197
+
}
198
+
}
137
199
```
138
200
139
-
4. Buildand run your app.
201
+
2. Update the Signals configuration to use the flag:
202
+
203
+
```kotlin
204
+
Signals.configuration = Configuration(
205
+
...
206
+
debugMode = BuildConfig.DEBUG_MODE
207
+
)
208
+
```
209
+
210
+
### Option 2: Use a feature flag
211
+
212
+
If your app uses [Firebase Remote Config](https://firebase.google.com/docs/remote-config){:target="_blank"} or a similar system, you can control `debugMode` remotely.
213
+
214
+
```kotlin
215
+
Signals.configuration = Configuration(
216
+
...
217
+
debugMode = remoteConfig.getBoolean("debug_mode")
218
+
)
140
219
141
-
## Step3:Verifyand deploy events
220
+
<!--## Step 3: Verify and deploy events
142
221
143
222
After integrating the SDK and running your app, verify that Segment is collecting signals:
0 commit comments