In the script I need to get RefID, but I don’t know how to do it.
I searched for information on Google for several days, but without result. Because the information is old or it is not possible to integrate into Unity.
I will clarify.
This referral parameter is generated on the web server after the first launch of the game in the play market.
When a user shares a referral link and another user downloads the game from the link provided.
I need to ask the Play Market if the referral parameter exists or not.
But I don’t know how to do it
The problem is that the api will work after connecting the library in the build.gradle file. But it doesn’t work in Unity. I reviewed all the documentation on this api and I could not find how to make it work in Unity.
Madgvox, thanks for the links. I read the documentation. Now I have a lot of questions Probably I’ll use the solution from the github.
The problem is not the interaction between Unity and Java code. The documentation contains code that can be adapted for Unity. There is no documentation or guide on how to integrate this library / api in Unity and this is a mistake of the developers of this api.
Thank you for your help! Good luck!