Closed turboasm closed 3 years ago
hey @turboasm. Why do you need AppsFlyerProperties.getInstance().setReferrer()
?
The native SDK collects google install referrer on start.
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
@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
}...
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.
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.