Aller au contenu principal

Liaison profonde

Configurez le deep linking pour le SDK Azeoo. Ces notions s’appliquent à toutes les plateformes. L’exemple ci-dessous utilise Flutter (Dart) ; pour Android, iOS et React Native, reportez-vous à la section Configuration de votre plateforme (Android · iOS · Flutter · React Native).

Configuration

Transmettez la configuration du deep linking lors de initialize dans les options (Flutter) ou dans la configuration (native) :

// Flutter
await AzeooSDK.initialize(apiKey, options: AzeooSDKInitOptions(
deepLinks: DeepLinkConfig(
scheme: "yourapp",
host: "yourapp.com",
removePathPrefix: "/sdk",
),
));

Liens pris en charge

Le SDK gère automatiquement les deep links et navigue vers les écrans appropriés.

Configuration de la plateforme

iOS

Configurez dans Info.plist :

<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>yourapp</string>
</array>
<key>CFBundleURLName</key>
<string>yourapp.com</string>
</dict>
</array>

<!-- Universal Links (https://yourapp.com/...) -->
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:yourapp.com</string>
</array>

Android

Configurez dans AndroidManifest.xml :

<!-- Custom scheme (yourapp://...) -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="yourapp" android:host="yourapp.com" />
</intent-filter>

<!-- App Links / Universal Links (https://...) -->
<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="yourapp.com" />
</intent-filter>

Prochaines étapes