Quick Start

This guide will help you create your first deep link and integrate Clippr into your mobile app.

Prerequisites

  • A Clippr account (sign up here)
  • A mobile app (Flutter, iOS, or Android)

Step 1: Create Your App in the Dashboard

No steps defined

Step 2: Install the SDK

Choose your platform:

Add to your pubspec.yaml:

yaml
dependencies:
clippr: ^0.0.4

Then run:

bash
flutter pub get

Step 3: Initialize the SDK

dart
import 'package:clippr/clippr.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();

await Clippr.initialize(apiKey: 'YOUR_API_KEY');

runApp(MyApp());
}
dart
class _MyAppState extends State<MyApp> {
@override
void initState() {
  super.initState();
  _initDeepLinks();
}

Future<void> _initDeepLinks() async {
  // Get link that opened the app (works for deferred links too!)
  final link = await Clippr.getInitialLink();
  if (link != null) {
    _handleDeepLink(link);
  }

  // Listen for links while app is running
  Clippr.onLink = (link) {
    _handleDeepLink(link);
  };
}

void _handleDeepLink(ClipprLink link) {
  print('Deep link path: ${link.path}');
  // Navigate based on path
}
}

Step 5: Configure Platform Deep Linking

Add Associated Domains in Xcode:

  1. Select your target → Signing & Capabilities
  2. Click "+ Capability" and add "Associated Domains"
  3. Add: applinks:yourapp.clppr.xyz

That's it! Clippr automatically hosts your AASA file.

Go back to the Clippr Dashboard:

  1. Navigate to LinksCreate Link
  2. Enter a Deep Link Path (e.g., /product/123)
  3. Optionally add:
    • Custom alias (e.g., summer-sale)
    • Campaign, source, medium for attribution
    • Social preview metadata
  4. Click Create

Your link is ready: https://yourapp.clppr.xyz/summer-sale

Step 7: Test It!

  1. Send the link to yourself
  2. Click it on your test device:
    • With app installed: App opens to your deep link path
    • Without app installed: Redirected to app store, then app opens to the path after install

Info

Enable debug mode during development to see detailed logs:

dart
await Clippr.initialize(apiKey: 'YOUR_API_KEY', debug: true);

Next Steps