I have created a dynamic link for the Flutter app using the Firebase console and I am trying to access that dynamic link data from within the app. But I am getting this message in the logs. The app is not using any authentication. I am using this method for the same:
Future<void> initDynamicLink() async {
dynamicLinks.onLink.listen((dynamicLinkData) {
final Uri uri = dynamicLinkData.link;
final queryParams = uri.queryParameters;
if (queryParams.isNotEmpty) {
String? productId = queryParams['id'];
Navigator.pushNamed(context, dynamicLinkData.link.path,
arguments: {"productId": int.parse(productId!)});
} else {
Navigator.pushNamed(context, dynamicLinkData.link.path);
}
}).onError((error) {
if (kDebugMode) {
print(error);
}
});
}
P.S.: I am able to create new short and long dynamic links from the app.