v1.2.2
link_bridge
一個用於在 Android 和 iOS 上處理深度連結的 Flutter 插件。支援自訂 URL 方案和通用連結,實現無縫的跨平台導航。
32喜歡 76近 30 天下載160Pub 分數
AndroidiOS
YoussefShehab/LinkBridge open-source repository details.
{"sdk":"flutter"}{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
⚡ 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.
https://linkbridge.chimeratechsolutions.comAdd this to your pubspec.yaml:
dependencies:
link_bridge: ^1.2.2
Then run:
flutter pub get
Before using the plugin, you must create an account and get your App Key:
You will need this key when generating the DeepLink.
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.
applinks:${your_app_name}.chimeratechsolutions.com
Info.plist:<key>FlutterDeepLinkingEnabled</key>
<false/>
<key>AssociatedDomains</key>
<array>
<string>applinks:${your_app_name}.chimeratechsolutions.com</string>
</array>
Import the plugin:
import 'package:link_bridge/link_bridge.dart';
Uri? deepLink = await LinkBridge().init();
LinkBridge().listen((Uri? deepLink) async {
print('New deep link: $deepLink');
});