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.
Supported Deep Links
yourapp://home- Opens the home page (Digia UI page)yourapp://product/{id}- Opens product details with parametersyourapp://cart- Opens the cart screenyourapp://profile- Opens a native Flutter screenhttps://yourdomain.com/home- Opens the home page (Universal Links/App Links)
Setup
1. Add Dependencies
2. Configure Android Deep Links
Add intent filters to android/app/src/main/AndroidManifest.xml:
3. Configure iOS Deep Links
Add URL schemes to ios/Runner/Info.plist:
Implementation
DeepLinkHandler Class
Create deep_link_handler.dart:
Initialize in DigiaUIAppBuilder
Testing Deep Links
Android
iOS
Digia UI Integration Patterns
Pure Digia UI Navigation
Hybrid Navigation
Advanced Usage
Query Parameters
Analytics Integration
Troubleshooting
Check URL Scheme: Ensure your URL scheme is correctly registered in both Android and iOS configurations.
Verify Package Name: Make sure the package name in AndroidManifest matches your app's package name.
Test with ADB: Use ADB commands to test deep links directly.
Check Logs: Look for "Received deep link" messages in your app logs.
Related Documentation
Last updated