Electron Global Media Keys on Mac OS

I’ve been working on an Electron app that controls web-based audio. I’ve been struggling with media keys on Mac OS (latest) for a while and I’m not sure what to try at this point.

After https://github.com/electron/electron/issues/20788 was marked completed, I was still having issues and wrote up issue #22405. The last version that worked consistently for me was Electron 7.x. Anything newer than that generally fails to capture the media keys, despite no errors during registration. With that said, the https://github.com/salomvary/soundcleod project is using Electron 8.x and that works on my Mac. So, I know that at least that version should work despite not working for me.

Can anyone offer any thoughts about what I might be doing wrong that cause media keys not to work correctly after version 7.x? I can add that I have not had the same issues with Ubuntu Linux, but only with Mac.

Thanks,
Craig