So I am creating my game and I am not understanding where I should get the public key, I need to understand that for Android and IOS too
Develop games in your browser. Powerful, performant & highly capable.
For Android you can find it in Google Play Console, under Development tools -> Services & API.
For IOS - I don't know, try googling.
for ios called shared secret key :)