You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. First define the Onelink ID (find it in the AppsFlyer dashboard in the onelink section:
393
+
394
+
**`Future<void> setAppInviteOneLinkID(String oneLinkID, Function callback)`**
395
+
396
+
2. Set the AppsFlyerInviteLinkParams class to set the query params in the user invite link:
397
+
398
+
```dart
399
+
class AppsFlyerInviteLinkParams {
400
+
final String channel;
401
+
final String campaign;
402
+
final String referrerName;
403
+
final String referreImageUrl;
404
+
final String customerID;
405
+
final String baseDeepLink;
406
+
final String brandDomain;
407
+
}
408
+
```
409
+
410
+
3. Call the generateInviteLink API to generate the user invite link. Use the success and error callbacks for handling.
411
+
412
+
**`void generateInviteLink(AppsFlyerInviteLinkParams parameters, Function success, Function error)`**
413
+
414
+
415
+
_Example:_
416
+
```dart
417
+
appsFlyerSdk.setAppInviteOneLinkID('OnelinkID',
418
+
(res){
419
+
print("setAppInviteOneLinkID callback: $res");
420
+
});
421
+
422
+
AppsFlyerInviteLinkParams inviteLinkParams = new AppsFlyerInviteLinkParams(
423
+
channel: "",
424
+
referrerName: "",
425
+
baseDeepLink: "",
426
+
brandDomain: "",
427
+
customerID: "",
428
+
referreImageUrl: "",
429
+
campaign: ""
430
+
);
431
+
432
+
appsFlyerSdk.generateInviteLink(inviteLinkParams,
433
+
(result){
434
+
print(result);
435
+
},
436
+
(error){
437
+
print(error);
438
+
}
439
+
);
440
+
```
388
441
---
389
442
### **Conversion Data and on app open attribution for older versions**
390
443
For plugin version `6.0.5+2` and below the user can access `conversionDataStream`, `appOpenAttributionStream` and `onDeepLinkingStream` to listen for events (see example app)
0 commit comments