-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onDeepLinking cannot be monitored #324
Labels
Comments
👋 Hi @tudosxxx and Thank you for reaching out to us.
|
@tudosxxx Hi did you find any solution ? i am facing the same issue currently |
@AminSheikh @tudosxxx Here's a sample code that works for me: class AppsFlyerUtil {
static AppsflyerSdk appsFlyerSdk = AppsflyerSdk(AppsFlyerOptions(
manualStart: true,
afDevKey: "",
showDebug: kDebugMode,
timeToWaitForATTUserAuthorization: 15,
));
// Initialize the SDk
static init() async {
appsFlyerSdk.initSdk(registerConversionDataCallback: true, registerOnAppOpenAttributionCallback: true, registerOnDeepLinkingCallback: true).then((t) {
appsFlyerSdk.onDeepLinking((DeepLinkResult dp) {
try {
switch (dp.status) {
case Status.FOUND:
print(dp.deepLink?.toString());
if (dp.deepLink?.getStringValue('deep_link_value') != null) {
print(dp.deepLink!.getStringValue('deep_link_value')!);
print(dp.deepLink!.getStringValue('deep_link_sub1')!);
}
break;
case Status.NOT_FOUND:
print("deep link not found");
break;
case Status.ERROR:
print("deep link error: ${dp.error}");
break;
case Status.PARSE_ERROR:
print("deep link status parsing error");
break;
}
print("onDeepLinking res: ${dp.toJson()}");
} catch (e) {
print("error in onDeepLinking: $e");
}
});
if (Platform.isAndroid) {
appsFlyerSdk.performOnDeepLinking();
}
appsFlyerSdk.startSDK();
});
}
// Call this function to create a shirt link
static deepLinkSetup() async {
await appsFlyerSdk.setAppInviteOneLinkID('your-one-link-id', (res) {
print("setAppInviteOneLinkID callback: $res");
appsFlyerSdk.generateInviteLink(
AppsFlyerInviteLinkParams(channel: 'nadroid', baseDeepLink: "", brandDomain: "", referreImageUrl: "", customParams: {
"deep_link_value": 'value',
"deep_link_sub1": 'value1',
// Supports values upto deep_link_sub10 or maybe more
}), (result) async {
print(result);
if (result['status'] == "success") {
print(result['payload']['userInviteURL']);
}
}, (error) {
print(error);
});
});
}
}
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`AppsFlyerOptions appsFlyerOptions = AppsFlyerOptions(
afDevKey: '*******************',
appId: '',
showDebug: true,
appInviteOneLink: 'mv21',
timeToWaitForATTUserAuthorization: 15,
manualStart: true
);
appsflyerSdk = AppsflyerSdk(appsFlyerOptions);
`getOnDeepLinkUrl() async{
}`
When I run the IDE directly, onDeepLinking detects that the deep link is not found, but when I visit the website via the invitation link I created, the website goes to the Google App Store and I open it manually. Each time, the onInstallConversionData method listens for printing. onDeepLinking nothing happens. How to combine this invitation with onDeepLinking and get the custom parameters in the invitation link
The text was updated successfully, but these errors were encountered: