パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.2.1

install_referrer

アプリケーションがどこからインストールされたかを検出します(Google Play、App Store、TestFlightなど)

AndroidiOS
30日間ダウンロード
1450
いいね数
72
Pub ポイント
140

パッケージをインストール

flutter pub add install_referrer

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

install_referrer パッケージは、Flutter アプリがインストールされた元(例:Google Play、App Store、TestFlight)を検出できるようにします。アプリ起動時にリファラー情報を取得するためのシンプルな API を提供し、開発者がマーケティングキャンペーンやユーザー獲得元を追跡できるようにします。Android および iOS に対応しており、プラグインインターフェースを通じてネイティブプラットフォーム機能を利用しています。このパッケージは、モバイルアプリにおける分析、アトリビューション、キャンペーントラッキングに役立ちます。

用途

  • ユーザー獲得元のトラッキング
  • マーケティングキャンペーンのパフォーマンスを分析する
  • 分析プラットフォームとの統合
  • 特定の広告にインストールを割り当てる
  • 紹介プログラムのサポート

主な機能

  • クロスプラットフォーム対応(Android および iOS)
  • リファラー取得のためのシンプルな API
  • プラットフォームチャネルを介したネイティブ統合
  • 軽量で最小限の依存関係
  • セキュアなデータ処理

適している対象

  • マーケティング分析チーム
  • モバイルアプリ開発者
  • キャンペーントラッキングシステム
  • 紹介およびインセンティブプログラム
  • インストールの帰属が必要なアプリ

注意事項

  • 両プラットフォームで適切な設定が必要です
  • 初期インストールリファラーのみに制限
  • プラットフォーム固有の実装に依存
  • すべてのテスト環境で動作しない可能性があります
  • データの利用可能性は、広告ネットワークおよびストアポリシーに依存します

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

install_referrer

Pub

A Flutter plugin that allows you to detect how your application was installed.

Supported platforms

  • Android: ✅
  • iOS: ✅

Feel free to open a PR to support new platforms.

Installation

  1. Add install_referrer: ^1.2.1 to your pubspec.yaml file.
  2. Import import 'package:install_referrer/install_referrer.dart';
  3. Get the value by invoking the Future InstallReferrer.referrer

Possibles values

Android
Store Value
Google Play InstallationAppReferrer.androidGooglePlay
Amazon App Store InstallationAppReferrer.androidAmazonAppStore
Huawei App Gallery InstallationAppReferrer.androidHuaweiAppGallery
Oppo App Market InstallationAppReferrer.androidOppoAppMarket
Samsung App Shop InstallationAppReferrer.androidSamsungAppShop
Vivo App Store InstallationAppReferrer.androidVivoAppStore
Xiaomi App Store InstallationAppReferrer.androidXiaomiAppStore
Others InstallationAppReferrer.androidManually

If the application was installed from a third party app (eg: GMail, Google Drive, Chrome…), it will be considered as a manual installation (InstallationAppReferrer.androidManually).

If the application was installed from a store (FDroid, Amazon App Shop…) which was not preinstalled on the device (a "non-system" app), it will also be considered as a manual installation (InstallationAppReferrer.androidManually).

If the Android application is in debug mode, it will be marked as InstallationAppReferrer.androidDebug.

iOS
Store Value
App Store InstallationAppReferrer.iosAppStore
Test Flight InstallationAppReferrer.iosTestFlight

If the iOS application is in debug mode (eg: from the simulator), it will be marked as InstallationAppReferrer.iosDebug.

Package name

You can also get the package name (Android) or app id (iOS), by calling instead InstallReferrer.app

Widgets

If you want to receive the result directly in a Widget, you have two choices: InstallReferrerDetectorListener and InstallReferrerDetectorBuilder :

InstallReferrerDetectorBuilder(
  builder: (BuildContext context, InstallationApp? app) {
    if (app == null) {
      return const CircularProgressIndicator.adaptive();
    } else {
      return Text(
        'Package name:\n${app.packageName ?? 'Unknown'}\n'
        'Referrer:\n${referrerToReadableString(app.referrer)}',
          textAlign: TextAlign.center,
      );
    }
  },
);
InstallReferrerDetectorListener(
  child: YourWidget(),
    onReferrerAvailable: (InstallationApp? app) {
      // TODO
    },
);

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。