Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
feat(ios): set trackAdvertising=true by default on ios (segmentio#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kadi Kraman authored and f2prateek committed Jun 17, 2019
1 parent d870e92 commit 09e997b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/core/docs/classes/analytics.client.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ ___

**getAnonymousId**(): `Promise`<`string`>

*Defined in [analytics.ts:305](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L305)*
*Defined in [analytics.ts:307](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L307)*

Retrieve the anonymousId.

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/__tests__/configuration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ it('uses the default configuration', async () => {
flushInterval: undefined
},
ios: {
trackAdvertising: false,
trackAdvertising: true,
trackDeepLinks: false
}
})
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export module Analytics {
ios?: {
/**
* Whether the analytics client should track advertisting info.
*
* Disabled by default.
*
* Enabled by default.
*/
trackAdvertising?: boolean
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const defaults = {
flushInterval
}),
ios: ({
trackAdvertising = false,
trackAdvertising = true,
trackDeepLinks = false
}: Partial<Configuration['ios']>) => ({
trackAdvertising,
Expand Down

0 comments on commit 09e997b

Please sign in to comment.