<p dir="auto">Output of node_modules/.bin/electron --version: 3.0.3<br>
Operating System (Platform and Version): macOS Mojave 10.14</p>
<p dir="auto"><strong>Description</strong><br>
There were a few desktops. I put my electron app on one, and focused on another one. When the app's notification came and I clicked the action button:</p>
<p dir="auto"><strong>Expected Behavior</strong><br>
The app will not be activated.</p>
<p dir="auto"><strong>Actual Behavior</strong><br>
The app was activated automatically.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/ervinewell/electron-quick-start.git -b bugfix/notificaion-activate-app
$ npm install
$ npm start"><pre class="notranslate">$ git clone https://github.com/ervinewell/electron-quick-start.git -b bugfix/notificaion-activate-app
$ npm install
$ npm start</pre></div>
<p dir="auto"><strong>Screenshots</strong><br>
<a href="https://youtu.be/YaNFgvYOYK8" rel="nofollow">https://youtu.be/YaNFgvYOYK8</a></p>
<ul dir="auto">
<li>Electron Version: 2.0.5, 2.0.6</li>
<li>Operating System (Platform and Version): macOS 10.13.6</li>
<li>Last known working Electron version: 2.0.5</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
App passing submission requirements.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
App got rejected.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Your app uses or references the following non-public APIs:

Symbol: _CGDisplayUsesForceToGray
From framework: /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics

Symbols: ___CFRunLoopSetOptionsReason, __CFIsObjC
From framework: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

In binary: Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework"><pre class="notranslate"><code class="notranslate">Your app uses or references the following non-public APIs:

Symbol: _CGDisplayUsesForceToGray
From framework: /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics

Symbols: ___CFRunLoopSetOptionsReason, __CFIsObjC
From framework: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

In binary: Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework
</code></pre></div>
<p dir="auto"><strong>Additional Information</strong><br>
Our app already is on the App Store using Electron version 2.0.5 (just trying to issue an update). I guess this is a new requirement.</p>