matchEnd Invoked twice

In general, you are right. But you have to remember that OnClick is an “absolute” binary event and matchEnd is a “logical” event that we defined, to let the app developers knows when the match is ended. It’s not a PUBG event - we set it and decided when it fired. In the past, we got some request to defined it like this (when the player has died and when the user exit to the lobby). In retrospect - it would be better if we chose to implement it as you suggested (fire it only when the user exit to the lobby), but change the logic now may break some existing apps that relay on this behavior and logic.
Anyway, we are trying to improve all the time, and we will use this insight for future developments. So thanks for these notes. I forward this issue to the relevant team.