In my Flutter app I’ve carried out dynamic linking, I’m sending the hyperlink with a id parameter and when the app receives it it navigates to the detailed display with given id. It really works all advantageous in Android, nonetheless on iOS lengthy dynamic hyperlink is working as anticipated however once I ship brief hyperlink it offers me this and solely opens the app the handleDynamicLink operate not triggered.
FLTFirebaseDynamicLinks: The url has not been equipped with the dynamic hyperlink.Please strive opening your app with the lengthy dynamic hyperlink to see if that works
So I’m sending a WhatsApp message with created hyperlink and lengthy hyperlink just isn’t the factor that I wish to ship.
My dynamic hyperlink initializing code
void dynamicLinkInit() async {
ultimate PendingDynamicLinkData? initialLink = await FirebaseDynamicLinks.occasion.getInitialLink();
if (initialLink != null) {
handleDynamicLink(initialLink);
}
FirebaseDynamicLinks.occasion.onLink.pay attention((PendingDynamicLinkData dynamicLink) async {
handleDynamicLink(dynamicLink);
}).onError((e) => l.w(e));
}
void handleDynamicLink(PendingDynamicLinkData dynamicLink) {
ultimate Uri uri = dynamicLink.hyperlink;
l.w(uri);
ultimate queryParams = uri.queryParameters;
if (queryParams.isNotEmpty && queryParams['id'] != null) {
String id = queryParams["id"]!;
l.w(id);
Get.to(() => RequestDetail(id: id));
}
}
I additionally added the hyperlink to Related Domains and URL Sorts half.
Do you’ve gotten any thought why the hyperlink is working when it’s lengthy however not when it’s brief?