搜尋套件、儲存庫與 APP 分類

套件詳情v1.2.2

link_bridge

一個用於在 Android 和 iOS 上處理深度連結的 Flutter 插件。支援自訂 URL 方案和通用連結,實現無縫的跨平台導航。

AndroidiOS
近 30 天下載
103
喜歡數
32
Pub 分數
160

安裝套件

flutter pub add link_bridge

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

LinkBridge 是一個 Flutter 插件,可在 Android 和 iOS 上實現無縫深度連結。它支援自訂 URL 方案和通用連結,讓應用程式能以最少設定處理跨平台的傳入連結。專為跨平台一致性設計,可簡化從電子郵件、訊息或網頁等外部來源直接導航至特定應用狀態的過程。此外,該插件與 Flutter 的路由系統順暢整合,並提供可靠的連結解析與處理功能。

適用情境

  • 處理電子郵件連結中的應用重導向
  • 啟用社群媒體深度連結
  • 支援行銷活動追蹤
  • 在應用程式之間共享內容
  • 啟用一鍵導航至應用內內容

主要特色

  • 支援自定義 URL 方案
  • 在iOS上處理通用連結
  • 跨平台深度連結
  • 與 Flutter 路由的簡單整合
  • 自動連結解析和路由

適合對象

  • 需要深度連結支援的應用
  • 行銷和分析整合
  • 共享內容工作流程
  • 跨平台移動應用
  • 透過外部連結進行使用者引導

使用建議

  • 需要正確設定 URL 方案與相關網域
  • 需要在 AndroidManifest.xml 和 Info.plist 中進行設定
  • 可能需要在實體裝置上進行測試以支援通用連結
  • 僅限 Android 和 iOS 平台
  • 依賴於正確的伺服器端連結設定

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

🔗 link_bridge

⚡ To use this plugin, you must create an account and get your App Key here.

A lightweight Flutter plugin for deep linking and deferred deep linking on Android and iOS — a simple, Firebase-free alternative to Dynamic Links.


✅ Features

  • 🔗 Deep linking on Android & iOS (App Links & Universal Links)
  • ⏳ Deferred deep linking (works even if app installed after clicking the link)
  • 📈 Built-in link analytics
  • 🛠 Zero additional configuration beyond platform files
  • ⚙️ Integrated with https://linkbridge.chimeratechsolutions.com

📲 Installation

Add this to your pubspec.yaml:

dependencies:
  link_bridge: ^1.2.2

Then run:

flutter pub get

🚀 Getting Started

Before using the plugin, you must create an account and get your App Key:

  1. Go to linkbridge.chimeratechsolutions.com/account.
  2. Create a free account.
  3. Add your app name.
  4. Copy your App Key.

You will need this key when generating the DeepLink.


📦 Platform Setup

🟢 Android

Edit android/app/src/main/AndroidManifest.xml:

<!-- Disable Flutter's default deep linking -->
<meta-data android:name="flutter_deeplinking_enabled" android:value="false" />

<!-- App Link support -->
<intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data
        android:scheme="https"
        android:host="${your_app_name}.chimeratechsolutions.com"
        android:pathPrefix="/link" />
</intent-filter>

🔔 Replace ${your_app_name} with your actual app name or identifier.


🍏 iOS
  1. Open your project in Xcode.
  2. Go to Signing & Capabilities → Add Associated Domains.
  3. Add:
applinks:${your_app_name}.chimeratechsolutions.com
  1. Edit your Info.plist:
<key>FlutterDeepLinkingEnabled</key>
<false/>
<key>AssociatedDomains</key>
<array>
    <string>applinks:${your_app_name}.chimeratechsolutions.com</string>
</array>

💻 Usage

Import the plugin:

import 'package:link_bridge/link_bridge.dart';
🔍 Initialize with your App Key
Uri? deepLink = await LinkBridge().init();
📡 Listen for deep links:
LinkBridge().listen((Uri? deepLink) async {
  print('New deep link: $deepLink');
});

📌 Notes

  • 🧠 Works out of the box — no Firebase or 3rd-party setup needed
  • 📥 Supports install → open flows (deferred links)
  • 📊 Built-in lightweight analytics
  • 👯 Full support for App Links (Android) and Universal Links (iOS)

⚠ Important

  • You must initialize the plugin with a valid App Key for it to work.
  • If no key is provided, the plugin will not handle links.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。