startupBlock method

  1. @override
Future<void> startupBlock()
override

The function run at startup by MBurger, initializes the plugin and do the startup work. It increments the session number and updates the metadata.

Implementation

@override
Future<void> startupBlock() async {
  await MBAudienceManager.shared.increaseSession();
  await MBAudienceManager.shared.updateMetadata();
}