Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playmarket empty response from getReferer #114

Closed
turboasm opened this issue Oct 21, 2020 · 4 comments
Closed

Playmarket empty response from getReferer #114

turboasm opened this issue Oct 21, 2020 · 4 comments

Comments

@turboasm
Copy link
Contributor

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
Copy link
Collaborator

af-fess commented Oct 21, 2020

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

@dmitryuk
Copy link
Contributor

dmitryuk commented Oct 21, 2020

I think because this method uses getReferrer of SDK
#106
Also method getReferrer worked before updating to com.android.installreferrer:installreferrer to 2.1

@turboasm
Copy link
Contributor Author

@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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants