Buscar pacotes, repositórios e categorias de apps

Detalhes do pacotev0.5.0

aptabase_flutter

SDK Flutter para Aptabase: Análise aberta, focada na privacidade e simples para aplicativos móveis, desktop e web

AndroidiOSmacOSWindowsLinux
Downloads em 30 dias
5,2 mil
Curtidas
18
Pontos Pub
150

Instalar pacote

flutter pub add aptabase_flutter

Visão geral do pacote

Orientação gerada a partir de informações públicas. Apenas para referência.

O SDK Aptabase Flutter permite aos desenvolvedores integrar análises leves e voltadas para a privacidade em aplicativos móveis, de desktop e da web. Construído com transparência e privacidade do usuário em mente, coleta apenas dados mínimos sem rastrear identificadores pessoais. O SDK é de código aberto, fácil de configurar e projetado para simplicidade, tornando-o ideal para aplicativos que priorizam a coleta ética de dados. Suporta o rastreamento de eventos em tempo real em plataformas Android, iOS, macOS, Windows e Linux.

Casos de uso

  • Rastrear o engajamento do usuário
  • Monitorar o desempenho do aplicativo
  • Analisando o uso de recursos
  • Coletando relatórios de falhas
  • Medir a duração da sessão

Principais recursos

  • Coleta de dados com foco na privacidade
  • Código aberto e transparente
  • Análise em tempo real
  • Suporte multiplataforma
  • Péssimo footprint de dados

Indicado para

  • Startups que priorizam privacidade
  • Aplicativos direcionados a mercados regulamentados
  • Desenvolvedores procurando análises simples
  • Projetos de código aberto
  • Aplicações pequenas a médias

Considerações

  • segmentação avançada limitada
  • Sem identificação de usuário embutida
  • Requer configuração manual para eventos personalizados
  • Não adequado para análise em escala empresarial
  • Dependente de serviço externo de back-end

README original

Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.

Aptabase

aptabase_flutter

pub package pub points

Instrument your app with Aptabase, an Open Source, Privacy-First, and Simple Analytics for Mobile, Desktop, and Web Apps.

Platform Support

Android iOS MacOS Web Linux Windows
✔️ ✔️ ✔️ ✔️ ✔️ ✔️

Install

You can install the SDK by running the following command:

flutter pub add aptabase_flutter

Android Requirements

If you're targeting Android, you'll need to add the following permissions to your AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET" />

Usage

First, you need to get your App Key from Aptabase, you can find it in the Instructions menu on the left side menu.

On your main.dart, import package:aptabase_flutter/aptabase_flutter.dart and initialized the SDK.

void main() async {
+ WidgetsFlutterBinding.ensureInitialized();
+ await Aptabase.init("<YOUR_APP_KEY>"); // 👈 this is where you enter your App Key

  runApp(const MyApp());
}

Note: You need to change your main function to be async and call WidgetsFlutterBinding.ensureInitialized(); before initializing the SDK.

Afterward, you can start tracking events with Aptabase.instance anywhere in your Dart. Here's an example:

import 'package:aptabase_flutter/aptabase_flutter.dart';

class _CounterState extends State<Counter> {
  int _counter = 0;

  // Tracking how many times the user has clicked the button, alongside the current counter value
  void _incrementCounter() {
    Aptabase.instance.trackEvent("increment", { "counter": _counter });
    
    setState(() {
      _counter++;
    });
  }
}

A few important notes:

  1. The SDK will automatically enhance the event with some useful information, like the OS, the app version, and other things.
  2. You're in control of what gets sent to Aptabase. This SDK does not automatically track any events, you need to call trackEvent manually.
    • Because of this, it's generally recommended to at least track an event at startup
  3. You do not need to await for the trackEvent function, it'll run in the background.
  4. Only strings and numbers values are allowed on custom properties

Preparing for Submission to Apple App Store

When submitting your app to the Apple App Store, you'll need to fill out the App Privacy form. You can find all the answers on our How to fill out the Apple App Privacy when using Aptabase guide.

For AI/LLM integration instructions, see llms.txt

Categorias

Dependências

Lista de dependências 4 itens

Repositório-fonte

Projetos que usam este pacote

Ainda não há dados.