Android Question Switch to the Play Referrer API by March 1, 2020

D

Deleted member 103

Guest
Hi,
I got this email from Google today, can anyone tell me how to implement this Api?

Hello Google Play Developer,

We recently announced that we’ll be deprecating the install_referrer intent broadcast mechanism. Because one or more of your apps uses this intent to track referrals, we wanted to ensure you make the switch before March 1, 2020. After this date, new versions of the Play Store app will no longer broadcast the install_referrer intent after app installs.

Action required

Migrate to the Play Install Referrer API to track your app installs for the following apps and/or games.

Affected apps

xx.xxxxxxxxxx
xx.xxxxxxxxxxxxxxx

The Play Install Referrer API offers better performance, uses a secure communication channel between your app and the Play Store, and offers a more robust solution against spoof and attribution fraud.
We know this change may require some additional work on your part and appreciate your understanding.

Thank you for being a part of Google Play.
 

Computersmith64

Well-Known Member
Licensed User
Longtime User
+1 - also received this email & wondered what is required / what the implications are / whether this is already taken care of in one of the current B4X libraries?

Interestingly, they only identified 2 out of the 18 apps I have on Play Store as being affected - which seems odd.

- Colin.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
If Erel can not help, then we're screwed. :D

I don't even take it into account. of course, he can help. he is THE Master in coding!

which_kung_fu_master_are_you_featured_large.jpg
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
Same here! Which intent is deprecated that we used?

INSTALL_REFERRER Intent is broadcast when an app is installed from the Google Play Store. This BroadcastReceiver listens for that Intent , passing the install referrer data to GTM for Mobile Apps and Google Analytics. This receiver will automatically invoke the Google Analytics receiver to set the Campaign data.
 
Upvote 0
D

Deleted member 103

Guest
Hi guys,
I use this code below in the 2 app meant by Google.
I think you should not use this code anymore, or replace it with the new Api.

B4X:
Private Sub CheckForGooglePlayServices As Boolean
    Dim GoogleApiAvailablity As JavaObject
    GoogleApiAvailablity = GoogleApiAvailablity.InitializeStatic("com.google.android.gms.common.GoogleApiAvailability").RunMethod("getInstance", Null)
    Dim context As JavaObject
    context.InitializeContext
    If GoogleApiAvailablity.RunMethod("isGooglePlayServicesAvailable", Array(context)) <> 0 Then
        GoogleApiAvailablity.RunMethod("makeGooglePlayServicesAvailable", Array(context))
        Return False
    End If
    Return True
End Sub

You can create a Thread in the Wishforum and/or a offer in the Joboffer forum if you are not able.
Thanks for the help and the hint, I would never have got this idea. :cool:
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Hi guys,
I use this code below in the 2 app meant by Google.
I think you should not use this code anymore, or replace it with the new Api.

B4X:
Private Sub CheckForGooglePlayServices As Boolean
    Dim GoogleApiAvailablity As JavaObject
    GoogleApiAvailablity = GoogleApiAvailablity.InitializeStatic("com.google.android.gms.common.GoogleApiAvailability").RunMethod("getInstance", Null)
    Dim context As JavaObject
    context.InitializeContext
    If GoogleApiAvailablity.RunMethod("isGooglePlayServicesAvailable", Array(context)) <> 0 Then
        GoogleApiAvailablity.RunMethod("makeGooglePlayServicesAvailable", Array(context))
        Return False
    End If
    Return True
End Sub


Thanks for the help and the hint, I would never have got this idea. :cool:

i am not using this code anywhere but still got that mail for 4 of my apps. So its something else.
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
It seems that it's in Informatix's Google Play Games Services library.

- Colin.
 
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User
Hi guys,
I use this code below in the 2 app meant by Google.
I think you should not use this code anymore, or replace it with the new Api.

B4X:
Private Sub CheckForGooglePlayServices As Boolean
    Dim GoogleApiAvailablity As JavaObject
    GoogleApiAvailablity = GoogleApiAvailablity.InitializeStatic("com.google.android.gms.common.GoogleApiAvailability").RunMethod("getInstance", Null)
    Dim context As JavaObject
    context.InitializeContext
    If GoogleApiAvailablity.RunMethod("isGooglePlayServicesAvailable", Array(context)) <> 0 Then
        GoogleApiAvailablity.RunMethod("makeGooglePlayServicesAvailable", Array(context))
        Return False
    End If
    Return True
End Sub


Thanks for the help and the hint, I would never have got this idea. :cool:
I also use this code in the application that refers to the mail sent.

but I see that ILAN comments that he does not use it ... we will have to continue finding out.
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
I also use this code in the application that refers to the mail sent.

but I see that ILAN comments that he does not use it ... we will have to continue finding out.
It could be in a few libraries. I'm pretty sure it's in Informatix's GPGS library & there is a function called IsGooglePlayServicesAvailable in the FirebaseAnalytics library which might also require the BIND_GET_INSTALL_REFER permission.

- Colin.
 
Upvote 0
Top