搜索插件、代码仓与 APP 分类

插件详情v2.0.4

store_redirect

一个 Flutter 插件,可将用户重定向到 Google Play 商店和 Apple App Store 中的应用页面。

AndroidiOS
近 30 天下载
9.7万
喜欢数
296
Pub 分数
130

安装插件

flutter pub add store_redirect

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

store_redirect 包是一个 Flutter 插件,可实现无缝重定向到 Google Play 商店或 Apple App Store 中的应用页面。它通过允许开发者在应用内直接引导用户评分或更新应用,简化了用户参与。该插件支持 Android 和 iOS 平台,确保跨设备的一致行为。它使用平台特定的 URL,根据设备的操作系统打开正确的商店页面。这一轻量级解决方案在无需复杂实现的情况下提升了用户体验。

适合场景

  • 重定向用户到应用评论
  • 引导用户更新应用
  • 推广应用下载
  • 改进应用评分收集
  • 促进应用内商店导航

主要特点

  • 对 Android 和 iOS 的跨平台支持
  • 简单的 API,设置简单
  • 自动平台检测
  • 支持自定义应用 ID
  • 可靠地处理 URL 方案

适合对象

  • 需要应用商店重定向的应用
  • 开发者推广应用评分
  • 具有应用内反馈流程的项目
  • 针对 Android 和 iOS 的移动应用
  • 旨在提高应用商店可见性的应用

使用建议

  • 需要互联网连接才能打开商店页面
  • App ID 必须正确配置
  • 仅限 Google Play 和 Apple App Store
  • 不支持的商店没有回退机制
  • 依赖外部存储URL格式

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

store_redirect

pub package

A Flutter plugin to redirect users to an app page in Google Play Store and Apple App Store.

The implementation is a fork of: https://github.com/Purus/launch_review


NOTE: Please feel free to send a PR to add more functionalities.

Thanks to Edouard Marquez for adding the iOS functionality.

Usage

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

Example

Import the library via

import 'package:store_redirect/store_redirect.dart'; 

Then invoke the static redirect method of StoreRedirect anywhere in your Dart code. If no arguments are provided, it will consider the current package.

StoreRedirect.redirect();

To open the App Store page for any other applications, you can pass the app Id.

StoreRedirect.redirect(androidAppId: "com.iyaffle.rangoli",
                    iOSAppId: "585027354");

This plugin is inspired by the Cordova plugin cordova-launch-review created by dpa99c.

License

The MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

所属分类

源码仓库

使用此插件的项目