mixpanel_flutter 2.3.0 mixpanel_flutter: ^2.3.0 copied to clipboard
Official Flutter Tracking SDK for Mixpanel Analytics developed and maintained by Mixpanel, Inc.
#
v2.3.0 (2024-03-25) #
Enhancements #
- Update AGP to 8 and update all dependencies #139
- upgrade js to 0.7.1 #138
- Add Future return in some methods #136
#
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
#
v2.1.1 (2023-03-23) #
Enhancements #
- bump iOS version to 4.1.0 #102
#
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
#
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
#
v1.6.0 (2022-06-24) #
Enhancements #
- bump versions to get millisecond precision for event time property #82
#
v1.5.1 (2022-05-20) #
Enhancements #
- bump versions to remove survey #79
#
v1.5.0 (2022-05-09) #
Enhancements #
- add config for web init and setServerURL for web #75
- feat: support
DateTime
andUri
#66 - fix: Make
flush
method asynchronous #64
#
v1.4.8 (2022-05-06) #
#
v1.4.7 (2022-05-06) #
#
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
#
v1.4.5 (2022-02-11) #
Enhancements #
- bump iOS SDK version to 3.1.4 #61
Fixes #
- Fix registering non-string super props in init fails #62
- Fix several misspellings of "Mixpanel" #60
- Fix backward ordering of 'alias()' parameters on Android. #58
#
v1.4.4 (2022-01-26) #
Fixes #
- Bump iOS SDK depedency to v3.1.2 #52
#
v1.4.3 (2022-01-19) #
Caution: Please DO NOT use this build! In this version, we have a bug in iOS that event names with & or % will be rejected by the server. We recommend you update to 1.4.4 or above. #
Fixes #
- Now First App Open will display 'flutter' as property value for 'Mixpanel Library' in iOS #49
#
v1.4.2 (2022-01-05) #
Merged pull requests:
- bump Mixpanel native SDK version to iOS 3.0.0, Android 6.0.0 #46
- register super properties on Mixpanel.init for iOS #46
- fix nested dictionary not being able to tracked properly in iOS #43
#
v1.4.1 (2021-12-04) #
Merged pull requests:
- Some lint fixes #40
#
v1.4.0 (2021-12-02) #
Enhancements #
- Add web support #35 Please add the following snippet to your web/index.html inside in your Flutter project.
#
v1.3.1 (2021-09-25) #
Enhancements #
- Migrate from JCenter #22
Merged pull requests:
- Bump native SDK dependencies #29
#
v1.3.0 (2021-09-21) #
Enhancements #
Merged pull requests:
- Remove jCenter #24
#
v1.2.1 (2021-07-19) #
Fixes #
- Fix the bool value being tracked as Int #21
#
v1.2.0 (2021-07-01) #
Enhancements #
- Add API
setUseIpAddressForGeolocation
#18
1.1.0 #
- Add support for Null Safety! Thanks @incendial for contributing a PR for this. 🙏
1.0.1 #
- Improve docs
1.0.0 #
- 🚀 This is our first release! 🎉🎉🎉 Report issues or give us any feedback is appreciated!
- integration guide
- full API reference