Open appxplore-tech opened 6 years ago
same question....
You have to set the view for popups:
Games.getGamesClient(mActivity, GoogleSignIn.getLastSignedInAccount(mActivity)).setViewForPopups(mActivity.findViewById(android.R.id.content));
@lbenedetto how to do it with today's API requirement (28)? I'm really angry with this Google requiring to keep apps at the latest API, but not providing any examples how to update all these deprecations.
If setViewForPopups is marked as deprecated, it should have a comment saying what to use instead. But I haven't done Android for a while so I don't know
@lbenedetto looks like setViewForPopups
is not deprecated yet. So your piece of code works, when I use it in proper place, which is in onConnected
. Thanks a lot! Lucky you when you don't need to do Android ;-)
@lbenedetto looks like
setViewForPopups
is not deprecated yet. So your piece of code works, when I use it in proper place, which is inonConnected
. Thanks a lot! Lucky you when you don't need to do Android ;-)
@Oldes, do other popups work as well for you too? In my case, when I use it in proper place, which is in onConnected, the welcome popup works, but the unlock achievement popup doesn’t.
@JohannStolz I can see unlock achievement popups.
@JohannStolz I can see unlock achievement popups.
@Oldes Thanks for the quick response. And I, unfortunately, can only see a welcome popup.
@JohannStolz Sorry, I would like to help you, but don't know how.. I spend 3 weeks to update our old games not to use deprecated api... now it's over 3 weeks while we are trying to submit these into Play Store, but still getting Violation of Families Policy Requirements (Metadata: First level links) in the last one from 4, although all games have just 3 same links (Twitter, FB and main company page). I'm really not feeling good making something for Google these days.
When I've wanted a help with updating the play games services, we used our direct contact to Google... they needed 1 week to respond and the response was completely irrelevant.. something like that they are happy to introduce us someone from the Play Business Development and some mambo-jumbo around. Btw... I also started this issue: https://issuetracker.google.com/issues/143913024 because I really don't like how Google deals with us.
@Oldes
@JohannStolz Sorry, I would like to help you, but don't know how.. I spend 3 weeks to update our old games not to use deprecated api... now it's over 3 weeks while we are trying to submit these into Play Store, but still getting Violation of Families Policy Requirements (Metadata: First level links) in the last one from 4, although all games have just 3 same links (Twitter, FB and main company page). I'm really not feeling good making something for Google these days.
I now that feel, @Oldes , I sympathize. Communication itself is already help, so thanks again. Over the past three days, I have tried all the solutions from Stackoverflow and from here, setViewForPopups () for many versions of the view works fine, but only for a welcome toast, and in both applications. I noticed that several similar questions with a similar problem "unlock popups not shown" are still without answers and without solutions.
I also noticed that unlocked achievements, which are visible as unlocked via the onShowAchievementsRequested () call, are blocked after a while in my application in which I use the code from TypeANumber, and TypeANumber in the original. Both applications are signed with debug certificates, in the API console calls are made without a single error, but after a lapse of time - about an hour or two, all achievements are reset, but the results of the leaderboard are saved. Have you encountered similar application behavior while testing game services?
Actually I was never testing it on the original Google's sample code. I was working directly with our game.. so maybe you don't see the unlock toasters because you are not receiving the achievements because of some misconfiguration. I Really don't know.. I would be happy when I could forget Google for a while and focus on real development.
I could not see the achievement unlock popups because I simply did not attach pictures to the achievements in the developer's console. As soon as I attached the plug pictures, everything began to work perfectly. Hope this saves someone time.
Hi,
I try to use the sample to build into my phone, and I found that the welcome toast, achievement toast are gone.(TypeANumber Challenge) I didn't change anything on the sample except removing the eventId(I didn't use that).
Is there anything wrong? Or did anyone found the same issue?