Skip to content

Commit

Permalink
chore: updated sample app to test new reset API and configurable coll…
Browse files Browse the repository at this point in the history
…ection of device id
  • Loading branch information
Desu Sai Venkat committed Aug 24, 2023
1 parent 192f9e8 commit a33d51d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/example/lib/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class HomeScreenState extends State<HomeScreen> {
}

void __initialize() {
MobileConfig mc = MobileConfig(autoCollectAdvertId: false);
MobileConfig mc =
MobileConfig(autoCollectAdvertId: false, collectDeviceId: false);
RudderConfigBuilder builder = RudderConfigBuilder();
builder.withFactory(RudderIntegrationAppcenterFlutter());
builder.withFactory(RudderIntegrationFirebaseFlutter());
Expand Down Expand Up @@ -112,7 +113,7 @@ class HomeScreenState extends State<HomeScreen> {
}

void __reset() {
rudderClient.reset();
rudderClient.reset(clearAnonymousId: true);
setOutput("reset");
}

Expand Down

0 comments on commit a33d51d

Please sign in to comment.