Activating in the presence of Gatekeeper pop-up

OS X 10.11.4


A user installs my application, opens a Finder window and double-clicks it - a Gatekeeper pop-up apperas. When the user selects "Open", my application opens, but it opens behind the Finder window, and if the Finder window is big enough it's hard to figure out that it's even there. I used "actuivateIgnoringOtherWindows: YES" at the beginning, but this doesn't help.


It work fine afterwards because the Gatekeeper pop-up is not there.


What do I do to make sure it opens normally the first time?

Activating in the presence of Gatekeeper pop-up
 
 
Q