question

NavinSamuel-8837 avatar image
0 Votes"
NavinSamuel-8837 asked RobCaplan edited

How to use new android Play Install Referrer Library in Xamarin Android

Install referer broadcast is deprecated. We need to use play referrer API. but to do in Xamarin.

dotnet-xamarin
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi! did you manage to solve the issue?

0 Votes 0 ·

@NavinSamuel-8837 & @EmersonSampaio-0607 ,

 did you manage to resolve this issue? or what alternative you have used ?
 Where i can find like Play install Referrer is to do in xamarin ?

 Thanks.
0 Votes 0 ·

1 Answer

JarvanZhang-MSFT avatar image
0 Votes"
JarvanZhang-MSFT answered JarvanZhang-MSFT edited

Hello,​

Welcome to our Microsoft Q&A platform!

Xamarin.Android doesn't provide the related Api. To reference a native Api in Xamarin, you could create a binding library for the project. Download the latest version of Android Install Referrer library, then add the aar file to your Xamarin.Android project. Don't remember to set Build Action for the .aar file to AndroidAarLibrary.

How to bind an .AAR, please check the doc:
https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/binding-an-aar

Best Regards,

Jarvan Zhang


If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.