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

所屬分類

原始碼儲存庫

使用此套件的專案