android_play_install_referrer
一个用于 Android Play 安装引用程序 API 的 Flutter 插件。
- 星标
- 21
- 复刻
- 46
- 最近推送(UTC)
- 2025年10月4日
- 项目状态
- 已归档
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
Deprecation!
This project was forked and is maintained by ChunkyTofuStudios. Please use their project instead https://github.com/ChunkyTofuStudios/play_install_referrer
android_play_install_referrer
A Flutter plugin for the Android Play Install Referrer API. The plugins throws an exception on iOS and on Android if Google Play Services are not available.
Usage
Get Google Play Install Referrer Details:
ReferrerDetails referrerDetails = await AndroidPlayInstallReferrer.installReferrer;
Passing Data Through Google Play Stroe Link
Pass Data With referrer URL query parameter:
Assuming, links could look like this (replace com.example.myapp with real application ID):
https://play.google.com/store/apps/details?id=com.example.myapp&referrer=someKey%3DsomeValue
Explanation
URL Components: ⤵️
Base URL for the app’s Google Play Store page https://play.google.com/store/apps/details?id=
Application ID: com.example.myapp
URL parameter: &referrer=
Custom Key-Value Data: Allows custom key-value pairs, such as someKey as the key and someValue as the value (%3D represents = in URL encoding):
someKey%3DsomeValue
Testing Referral
To test a referral link, release a version of the app on the Play Store. Referral links cannot be tracked through a debug APK, but they will work in testing phases (internal, open, closed) and in production.
Anyone who installs the app by clicking the referral link can be tracked.
For more information see https://developer.android.com/google/play/installreferrer/library.html
使用的依赖
依赖清单 2 项
- flutter
{"sdk":"flutter"} - flutter_test开发依赖
{"sdk":"flutter"}
如何选择适合项目的代码仓?
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
- 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
- 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
- 使用前在 GitHub 核对 README、许可证与 Issues。
来源与维护
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗