Not able to clicking on a popup from another app (Play Store)

No buttons are found when I let the driver find all elements of the class android.widget.Button. To be sure there was no mistake I also confirmed with the Appium inspector that this is the class of the button inside the popup (buttons inside my app use different classes).

It seams as if the driver focus does not change to the popup but stays with the app in the background instead.