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

插件详情v1.0.2

open_appstore

一个用于打开 Apple App Store 或 Google Play Store 的 Flutter 插件。

近 30 天下载
51
喜欢数
31
Pub 分数
30

安装插件

flutter pub add open_appstore

插件介绍

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

一个 Flutter 插件,可在应用内打开 Apple App Store 或 Google Play Store,方便用户访问应用评论或更新。该插件提供简单的接口,使用平台特定的 URL 启动商店页面。该插件专为跨平台兼容性设计,可无缝集成到 Flutter 应用中。它支持 iOS 和 Android,允许开发者通过最少的代码提升用户参与度,引导用户前往应用商店列表。此工具非常适合反馈驱动的功能,例如“评分我们”按钮。

适合场景

  • 从应用内按钮打开应用商店页面
  • 重定向用户以评分应用
  • 支持应用更新提示
  • 增强用户反馈工作流程
  • 促进应用发现
  • 通过商店链接提高用户留存率

主要特点

  • 跨平台支持(iOS 和 Android)
  • 用于启动商店 URL 的简单 API
  • 无额外依赖
  • 与 Flutter 应用轻松集成
  • 平台特定的 URL 处理
  • 轻便且快速

适合对象

  • 需要应用内评分提示的应用
  • 寻求简单商店导航的开发者
  • 反馈收集功能
  • 应用更新通知系统
  • 用户参与度提升
  • 极简应用商店链接

使用建议

  • 需要互联网连接才能打开商店
  • 限于iOS和Android平台
  • 不处理商店可用性检查
  • 没有可用商店的备用机制
  • 取决于正确的应用 ID 配置
  • 某些设备可能需要用户权限

原始 README

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

open_appstore

A Flutter plugin for opening the AppStore or PlayStore

Pub


Usage

Import the library via

import 'package:open_appstore/open_appstore.dart';

You can open the AppStore or PlayStore in your Dart code.
To open the App Store page, you can pass the app Id.

OpenAppstore.launch(androidAppId: "com.facebook.katana", iOSAppId: "284882215")
static void launch({String androidAppId, String iOSAppId}) async {
    await _channel.invokeMethod(
        'openappstore', {'android_id': androidAppId, 'ios_id': iOSAppId});
  }

iOS available

iOS is available from version 10.

if #available(iOS 10.0, *) {
                UIApplication.shared.open(url, options: [:], completionHandler: {(success: Bool) in
                    if success {
                        print("Launching \(url) was successful")
                    }})
            }

ScreenShots

  • iOS can't show in simulator

Issues and feedback

Please file issues to send feedback or report a bug. Thank you!


License

MIT License

所属分类

源码仓库

使用此插件的项目