DeepLink Integration

This guide explains how to integrate deep linking with the Digia Flutter SDK using the app_links package.

Overview

Deep linking allows users to open specific screens in your app through URLs. This is useful for:

  • Sharing specific content

  • Push notifications

  • QR codes

  • Web-to-app navigation

When combined with Digia UI, deep links can navigate to both native Flutter screens and Digia-powered UI screens.

  • yourapp://home - Opens the home page (Digia UI page)

  • yourapp://product/{id} - Opens product details with parameters

  • yourapp://cart - Opens the cart screen

  • yourapp://profile - Opens a native Flutter screen

  • https://yourdomain.com/home - Opens the home page (Universal Links/App Links)

Setup

1. Add Dependencies

Add intent filters to android/app/src/main/AndroidManifest.xml:

Add URL schemes to ios/Runner/Info.plist:

Implementation

DeepLinkHandler Class

Create deep_link_handler.dart:

Initialize in DigiaUIAppBuilder

Android

iOS

Digia UI Integration Patterns

Pure Digia UI Navigation

Hybrid Navigation

Advanced Usage

Query Parameters

Analytics Integration

Troubleshooting

  1. Check URL Scheme: Ensure your URL scheme is correctly registered in both Android and iOS configurations.

  2. Verify Package Name: Make sure the package name in AndroidManifest matches your app's package name.

  3. Test with ADB: Use ADB commands to test deep links directly.

  4. Check Logs: Look for "Received deep link" messages in your app logs.

Last updated