Detect and run installed games on ios and android.

How can I detect if specific game was installed on device.
And is there a way to run a game from other game?
Something like games repository. Main app (let’s call this “database”) have images of other games and if you click on one of the images, “database” should check if this game is installed on device. If that’s true then this game should start.
I don’t want to play “games” inside “database” but to simply run them.

sorry if this was already answered, but search did not bring any results.

I saw the answers for android. But I am not too sure about iOS.