Skip to content
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

No Callback Received When Launching Deep Link URL in App #348

Open
kuldipBaraiyaSquare opened this issue Oct 2, 2024 · 3 comments
Open
Labels

Comments

@kuldipBaraiyaSquare
Copy link

kuldipBaraiyaSquare commented Oct 2, 2024

When using the url_launcher function in our Flutter application to launch a deep link URL, we are not receiving the expected callback from the app.

Steps to Reproduce:

Set up a deep link URL in the app.
Paste the link into the designated input area of the app.
Trigger the launch using the url_launcher function.
Observe that the app does not receive the callback as expected.
Expected Behavior: The app should receive the appropriate callback when the deep link URL is launched, allowing it to handle the deep link correctly.

Actual Behavior: No callback is triggered, which results in the app not responding to the deep link as intended. However:

If another link is opened after clicking the deep link URL, returning to the app successfully triggers the deep link functionality.
When the app is placed in the background after clicking the deep link URL, and then reopened, the deep link functionality works as expected.

Code:

Linkify(
options: const LinkifyOptions(
humanize: false),
onOpen: (link) async {
AppUtils.openUrl(
website: link.url);
},)

static openUrl({required String website}) async {
try {
if (!website.startsWith('http://') && !website.startsWith('https://')) {
website = 'https://$website';
}
final Uri url = Uri.parse(website);
await launchUrl(url);
} catch (e) {
log(e.toString());
}
}

void processDeepLink() async {
appsflyerSdk.onDeepLinking((DeepLinkResult dp) async {
print(dp.deepLink.toString());
switch (dp.status) {
case Status.FOUND:
// logic
break;
case Status.NOT_FOUND:
break;
case Status.ERROR:
break;
case Status.PARSE_ERROR:
break;
}
});
}

Environment:

Flutter version: 3.24.2
Appsflyer plugin version: appsflyer_sdk: 6.14.3
Additional Notes:

This issue may affect user experience as users cannot interact with the app as expected after clicking the deep link.
Please investigate the integration with AppsFlyer and ensure that the deep link handling is correctly set up.

@pazlavi pazlavi added the support label Oct 2, 2024
Copy link

github-actions bot commented Oct 2, 2024

👋 Hi @kuldipBaraiyaSquare and Thank you for reaching out to us.
In order for us to provide optimal support, please submit a ticket to our support team at [email protected].
When submitting the ticket, please specify:

  • ✅ your AppsFlyer sign-up (account) email
  • ✅ app ID
  • ✅ production steps
  • ✅ logs
  • ✅ code snippets
  • ✅ and any additional relevant information.

@nghienp
Copy link

nghienp commented Oct 17, 2024

Same Issue on appsflyer_sdk: ^6.15.1

@arthurgiani
Copy link

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants