搜尋套件、儲存庫與 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

所屬分類

原始碼儲存庫

使用此套件的專案