No Pop Up is displayed when Calling Games.Achievements.unlock
android, google-play-games
Solution
I have found a solution, by using the following code
Games.setViewForPopups(getApiClient(), getWindow().getDecorView().findViewById(android.R.id.content));
I can get popups to show. I now have a related issue. The popup doesn't display for very long.
I think this is due to the fact I have a custom animation into this activity.
Is there any way to increase how long a popup is visible?
Problem
My current Android game employs BaseGameActivity. My game employs Achievements, which are getting unlocked when required. However, I do not ALWAYS see the PopUps related to the unlock event. I know the popup only appears when you first unlock the Achievement. Some popups appear fine, others (from different screens within my game) never appear. What do I have to do to Guarantee the popups appear? I have a feeling its related to this WARNING: ``` W/PopupManager(10725): You have not specified a View to use as content view for popups. Falling back to the Activity content view which may not work properly in future versions of the API. Use setViewForPopups() to set your content view. ``` I have called `setViewForPopups()` from within the activity my popups do not display in, however, I have never seen them. How do you call `setViewForPopups()` so that your entire application never sees the WARNING messages shown above?