Skip to content

Releases: mixpanel/mixpanel-flutter

Release 2.2.0

17 Nov 22:37

Choose a tag to compare

v2.2.0 (2023-11-17)

Enhancements

  • add api: setFlushBatchSize #102
  /// Set the number of events sent in a single network request to the Mixpanel server.
  /// By configuring this value, you can optimize network usage and manage the frequency of communication between the client
  /// and the server. The maximum size is 50; any value over 50 will default to 50.
  /// * [flushBatchSize] an int representing the number of events sent in a single network request.
  void setFlushBatchSize(int flushBatchSize) {
    _channel.invokeMethod<void>('setFlushBatchSize',
        <String, dynamic>{'flushBatchSize': flushBatchSize});
  }
  • bump iOS to 4.2.0

Release v2.1.1

23 Mar 04:05

Choose a tag to compare

v2.1.1 (2023-03-23)

Enhancements

  • bump iOS version to 4.1.0 #102

Release v2.1.0

06 Mar 07:31

Choose a tag to compare

v2.1.0 (2023-03-06)

NOTE:

  • From this version we will prefix randomly generated device-specific distinct_ids with "$device:". The prefix is applied the next time a new random ID is generated, any IDs generated by previous SDK versions and persisted on the device will continue to be used as-is until reset is called to generate a new ID. This does not change the value sent for the $device_id property, which will continue to be the randomly-generated ID without a prefix. Mixpanel's $identify endpoint has been updated to accept UUIDs with this prefix to coordinate with this change.

Enhancements

  • bump ios to 4.0.5 and android to 7.3.0 #99

Release v2.0.0

09 Sep 22:35

Choose a tag to compare

v2.0.0 (2022-09-09)

BREAKING CHANGE:

This major release removes all remaining calls to Mixpanel's /decide API endpoint. The main effect of this is that the SDK no longer fetches the remote status of your project's "Automatically collect common mobile events" setting. From this version forward, automatic event tracking can only be controlled by the, now required, parameter trackAutomaticEvents. Upon upgrading, existing implementations will need to add this parameter to their Mixpanel initializer calls.

import 'package:mixpanel_flutter/mixpanel_flutter.dart';

class MixpanelManager {
  static Mixpanel? _instance;

  static Future<Mixpanel> init() async {
    if (_instance == null) {
      _instance = await Mixpanel.init("YOUR_PROJECT_TOKEN", trackAutomaticEvents: true);
    }
    return _instance!;
  }
}

Enhancements

  • add param 'trackAutomaticEvents' to 'init' #86

Release v1.6.0

24 Jun 22:36

Choose a tag to compare

v1.6.0 (2022-06-24)

Enhancements

  • bump versions to get millisecond precision for event time property #82

Release v1.5.1

20 May 23:35

Choose a tag to compare

v1.5.1 (2022-05-20)

Enhancements

  • bump versions to remove survey #79

Release v1.5.0

09 May 23:07

Choose a tag to compare

v1.5.0 (2022-05-09)

Enhancements

  • add config for web init and setServerURL for web #75
  • feat: support DateTime and Uri #66
  • fix: Make flush method asynchronous #64

Release v1.4.8

06 May 01:06

Choose a tag to compare

v1.4.8 (2022-05-06)

Release v1.4.7

06 May 00:02

Choose a tag to compare

v1.4.7 (2022-05-06)

Release v1.4.6

11 Apr 17:56

Choose a tag to compare

v1.4.6 (2022-04-11)

Enhancements

  • bump iOS SDK version to 3.1.7 and Android to 6.1.1 #69

Fixes

  • Registering non-string super props in init fails #51