Yes, but as you suggested it can be made a general payload/daemon that can do it for any app that request it.
Your native app at launch, just like PS5 Explorer, writes a file with its PID/process name in a sandboxed location the app can write, your daemon is actively listening/scanning for apps...