All Projects → amplitude → Amplitude-Flutter-Deprecated

amplitude / Amplitude-Flutter-Deprecated

Licence: MIT license
Amplitude's Flutter SDK

Programming Languages

dart
5743 projects
objective c
16641 projects - #2 most used programming language
java
68154 projects - #9 most used programming language
ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Amplitude-Flutter-Deprecated

unity-plugin
Official Amplitude Unity Plugin
Stars: ✭ 31 (+10.71%)
Mutual labels:  product, best, amplitude
product
This repo contains the Spacemesh product specifications and designs
Stars: ✭ 18 (-35.71%)
Mutual labels:  product
significa.co
Significa - A digital design-led agency focused on product development.
Stars: ✭ 72 (+157.14%)
Mutual labels:  product
JetScreenRecorder
A simple screen capture video recorder using the AfrogeNet ffmpeg DLL and windows forms with a flat ui.
Stars: ✭ 70 (+150%)
Mutual labels:  best
POS---Point-Of-Sales
Point of sales proof of concept developed using Asp.Net Core 2.2. Features: Customer, Vendor, Product, Purchase Order, Goods Receive, Sales Order, Inventory Transactions and POS form.
Stars: ✭ 120 (+328.57%)
Mutual labels:  product
icecat
Icecat API - Find product description with EAN, UPC or GTIN-13
Stars: ✭ 26 (-7.14%)
Mutual labels:  product
Todokit
TodoKit - A beautiful bug and issue tracking software.
Stars: ✭ 253 (+803.57%)
Mutual labels:  product
movieapp
Curated List of Android Latest Technology With Best Practice
Stars: ✭ 15 (-46.43%)
Mutual labels:  best
pmweekly.com
产品经理周刊 -- 每周周一晚上 9 点推送经人工筛选出的产品精品文章
Stars: ✭ 23 (-17.86%)
Mutual labels:  product
iHateReadingLogs
Our website logs repository, Reach the website the get the complete details
Stars: ✭ 42 (+50%)
Mutual labels:  product
fast-cartesian
Fast cartesian product
Stars: ✭ 51 (+82.14%)
Mutual labels:  product
DOKS
Managed Kubernetes designed for simple and cost effective container orchestration.
Stars: ✭ 80 (+185.71%)
Mutual labels:  product
ticketevolution-php
A PHP client for the Ticket Evolution web services.
Stars: ✭ 22 (-21.43%)
Mutual labels:  product
rubyshops
An address book of French Companies using Ruby
Stars: ✭ 95 (+239.29%)
Mutual labels:  product
Terminal-Bot
Terminal Bot which will Execute your Commands From telegram bot!
Stars: ✭ 40 (+42.86%)
Mutual labels:  best
DDos-Attack-OVH-
Powerful DDoS Attack
Stars: ✭ 155 (+453.57%)
Mutual labels:  best
vue-product-spinner
🚗 A 3D product spinner for Vue.js with no dependencies
Stars: ✭ 94 (+235.71%)
Mutual labels:  product
kratix
Kratix is a framework for building Platform-as-a-Product
Stars: ✭ 175 (+525%)
Mutual labels:  product
auxilin
Open source Node.JS product launch kit that saves a lot of your time 👻
Stars: ✭ 26 (-7.14%)
Mutual labels:  product
amplitude-bigquery
Export your events from Amplitude to Google BigQuery/Google Cloud Storage
Stars: ✭ 28 (+0%)
Mutual labels:  amplitude


Warning: This Flutter SDK is deprecated!

We developed a new Flutter SDK bridging calls to our native SDKs, and this SDK won't be supported anymore. Here's the repo for the new Flutter SDK Amplitude-Flutter-New. The new SDK will start from v2.0.0. However, you can still continue to use version v1.4.0 which was implemented with the old style.

We made a decision because of following reasons.

  1. Our native SDKs (iOS, Android) are tested throughly and trusted.
  2. You will get access to much more features.
  3. You will get new faetures faster if it's added to native SDKs.
  4. It will save our time to duplicate logic for each APIs from native SDKs.

To migrate, since the we wrote the our API in a better way, you might need to change some API calls. Sorry for the inconvenience, but we try to make this change as fast as possible since we believe this is the right way to develop and maintain our Flutter SDK.

amplitude_flutter

pub package

The Official Amplitude Flutter plugin. Used to track events with Amplitude.

Getting Started

To use this plugin, add amplitude_flutter as a dependency in your pubspec.yaml file.

Find the API key for your Amplitude project under your project settings.

Import package:amplitude_flutter/amplitude_flutter.dart, and instantiate AmplitudeFlutter with your API key.

In the example below - replace the string API_KEY with your API Key.

In addition, a Config object can be passed as a constructor argument for additional options. NOTE: This plugin's methods should only be called from the main isolate.

Advertising Id Tracking

In iOS, to enable Advertising Id tracking, you will need to add AdSupport.framework in your project setting page.

In Android, firstly you need to add com.google.android.gms:play-services-ads as a dependency in your build.gradle. If you use Google Mobile Ads SDK version 17.0.0 above. You need to add AD_MANAGER_APP into your androidmanifest.xml file.

Secondly, since we don't assume user's project will depend on this library, we use reflection to invoke its APIs. So the names of its classes can't be changed since reflection will use original name to find the class. You also need to add exception rules into your proguard-android.txt or proguard-rules.pro.

-keep class com.google.android.gms.ads.** { *; }

Adding Carrier Information

You can set an option in the config object titled getCarrierInfo to retrieve carrier name for a device. This is the ( Config). This object can be passed as a constructor argument for additional options.

If you set getCarrierInfo to true - recipients on Android devices will see a dialog box asking them for permission . This dialog will say allow app to make and manage phone calls. This is a message sent from the android operating system for the READ_PHONE_STATE permission and carrier info is grouped into this. If the user denies permission - carrier information will not be retrieved. The new android operating systems require asking a user for permission before retrieving this information.

By default the Config will set getCarrierInfo will default to false.

An example can be found here Example.

Example

import 'package:amplitude_flutter/amplitude_flutter.dart';

// replace 'API_KEY' with your project's API_KEY
Future<void> example() async {
  final AmplitudeFlutter analytics = AmplitudeFlutter('API KEY');

  // set this user's id
  analytics.setUserId('abc123');

  // log an event
  analytics.logEvent(name: 'add_friend');

  // Log events with event properties
  analytics.logEvent(name: 'add_friend', properties: { 'event_properties': { 'key': 'value' }});

  // identify a user
  final Identify identify = Identify()
    ..set('cohort', 'Test A')
    ..setOnce('completed_onboarding', 'true')
    ..add('login_count', 1)
    ..append('tags', 'new tag')
    ..unset('demo_user');

  analytics.identify(identify);

  // Amplitude Accounts [https://amplitude.zendesk.com/hc/en-us/articles/115001765532-Accounts] methods:
  // add a user to a group
  analytics.setGroup('orgId', 15);

  // change properties of a group
  analytics.groupIdentify('orgId', 15, Identify()..set('account_manager', 456));

  // emit an event associated with a group
  analytics.logEvent('Demo Released', properties: { 'groups': { 'orgId': 15 } });

  // Log revenue
  final Revenue revenue = Revenue()
    ..setPrice(23.23)
    ..setQuantity(3)
    ..setProductId('widget1')

  analytics.logRevenue(revenue);
}

Need Help?

If you have any problems or issues over our SDK, feel free to create a github issue or submit a request on Amplitude Help.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].