rudder_plugin_android 3.2.0 copy "rudder_plugin_android: ^3.2.0" to clipboard
rudder_plugin_android: ^3.2.0 copied to clipboard

PlatformAndroid
unlisted

Android implementation of RudderStack Flutter SDK for native event tracking and analytics integration.

example/lib/main.dart

// ignore_for_file: uri_does_not_exist, undefined_class, undefined_function, undefined_identifier, depend_on_referenced_packages

import 'package:rudder_sdk_flutter/RudderController.dart';
import 'package:rudder_sdk_flutter_platform_interface/platform.dart';

void main() {
  // Initialize the SDK with your write key and configuration
  MobileConfig mc = MobileConfig(
      autoCollectAdvertId: false,
      sessionTimeoutInMillis: 6000,
      gzip: false,
      recordScreenViews: true,
      collectDeviceId: false);

  RudderConfigBuilder builder = RudderConfigBuilder();
  builder
    ..withDataPlaneUrl('your-data-plane-url')
    ..withMobileConfig(mc)
    ..withLogLevel(RudderLogger.VERBOSE);

  RudderController.instance.initialize('your-write-key', config: builder.build());
}
0
likes
160
points
19.4k
downloads

Publisher

verified publisherrudderstack.com

Weekly Downloads

Android implementation of RudderStack Flutter SDK for native event tracking and analytics integration.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter, rudder_sdk_flutter_platform_interface

More

Packages that depend on rudder_plugin_android

Packages that implement rudder_plugin_android