搜索插件、代码仓与 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.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。