We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7669fb0 commit 5d55818Copy full SHA for 5d55818
packages/core/src/js/client.ts
@@ -54,8 +54,10 @@ export class ReactNativeClient extends BaseClient<ReactNativeClientOptions> {
54
55
this._outcomesBuffer = [];
56
57
- this.on('postprocessEvent', addAutoIpAddressToUser);
58
- this.on('beforeSendSession', addAutoIpAddressToSession);
+ if (options.sendDefaultPii === true) {
+ this.on('postprocessEvent', addAutoIpAddressToUser);
59
+ this.on('beforeSendSession', addAutoIpAddressToSession);
60
+ }
61
}
62
63
/**
0 commit comments