Android/Google+ How to know if user's friends have installed application -
i'm trying retrieve people in user's circle have installed current application.
i have used sample application "plussampleactivity" provided in sdk , managed list of people in user's circles. however, i'm not sure how if person have installed application or not. documentation available seems limited...
what have found https://developer.android.com/reference/com/google/android/gms/plus/model/people/person.html i'm using below function returning false. (i have created user have installed app , can see when visiting user's profile on web using google+)
is there other api should used? or way debug better?
public abstract boolean ishasapp ()
if "true", indicates person has installed app making request , has chosen expose install state caller. value of "false" indicates install state cannot determined (it either not installed or person has chosen keep information private).
updated seems hasapp field not included in response? when trying api on below link, never succeed have hasapp included in response... suggestions might doing wrong?? https://developers.google.com/apis-explorer/#p/plus/v1/plus.people.get
(i posted same question on google groups, here)
unfortunately, hasapp field doesn't filled in response - it's legacy field older api. best way of matching keep track of installed users in database google ids, , compare ids in people.list response.
the documentation should updated reflect soon, sorry confusion!
Comments
Post a Comment