AppsFlyerSDK / appsflyer-cordova-plugin

AppsFlyer plugin for Cordova
MIT License
37 stars 71 forks source link

Playmarket empty response from getReferer #114

Closed turboasm closed 3 years ago

turboasm commented 3 years ago

Latest release with MR https://github.com/AppsFlyerSDK/appsflyer-cordova-plugin/pull/109/files updated com.android.installreferrer:installreferrer from 1.1.2 to 2.1, New implementation doesn't call AppsFlyerProperties.getInstance().setReferrer() internally, so AppsFlyerProperties.getInstance().getReferrer() method always returns empty response.

af-fess commented 3 years ago

hey @turboasm. Why do you need AppsFlyerProperties.getInstance().setReferrer()? The native SDK collects google install referrer on start.

dmitryuk commented 3 years ago

I think because this method uses getReferrer of SDK https://github.com/AppsFlyerSDK/appsflyer-cordova-plugin/pull/106 Also method getReferrer worked before updating to com.android.installreferrer:installreferrer to 2.1

turboasm commented 3 years ago

@af-fess How we can gather the referrer from SDK? for example, the code was working until the com.android.installreferrer:installreferrer has not been updated plugin.initSdk({ devKey: window.config.appFlyerSdk.key, isDebug: true, onInstallConversionDataListener: true }, (result) => { // todo: getReferrer }...

amit-kremer93 commented 3 years ago

Hi @turboasm @dmitryuk The methods AppsFlyerProperties.getInstance().getReferrer() and AppsFlyerProperties.getInstance().setReferrer() are old methods that were used before the update of installReferrer and other logic on the native sdk. After talking with our PM i was told that these methods are going to be deprecated and not to add them to the plugin as well. Thank you for your understanding.