Skip to content

Commit 117f0ac

Browse files
committed
docs(comments): Adding comment to reinforce the correct use of ConsentManager.start() in the sample app.
1 parent 3937900 commit 117f0ac

File tree

1 file changed

+9
-0
lines changed
  • testapp/src/main/java/com/segment/analytics/destinations/mydestination/testapp

1 file changed

+9
-0
lines changed

testapp/src/main/java/com/segment/analytics/destinations/mydestination/testapp/MainApplication.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ class MainApplication : Application() {
8181

8282
analytics.add(consentPlugin)
8383

84+
// This is commented out because before we start allowing events to flow
85+
// we want to make sure that our CMP OneTrust has started and we're able
86+
// to get the current consent settings from it.
87+
//
88+
// See below where we call this function inside the OneTrust success
89+
// callback.
90+
//
91+
// consentPlugin.start()
92+
8493
otPublishersHeadlessSDK.startSDK(
8594
DOMAIN_URL,
8695
DOMAIN_ID,

0 commit comments

Comments
 (0)