AppsFlyerSDK / appsflyer-flutter-plugin

Flutter Plugin for AppsFlyer SDK
MIT License
142 stars 111 forks source link

Deeplink class parameter missing #226

Closed esentis closed 1 year ago

esentis commented 1 year ago

The Deeplink class is missing the deep_link_sub1, and the only way to access it is through the toJson method .toJson()['deepLink']['deep_link_sub1'].

Solution

Add below line in DeepLink class

 String? get deepLinkSubValue =>  _clickEvent["deep_link_sub1"] as String?;
pazlavi commented 1 year ago

Hi @esentis Thank you for reaching out to us. There is no getter for this property by design. For extracting this field you should use the getStringValue method.

    _appsflyerSdk?.onDeepLinking((DeepLinkResult dp) {
      var deepLinkSub1 = dp.deepLink?.getStringValue("deep_link_sub1");
    });

You can find more details about how to work with the DeepLinkResult object here