Google play services fail in Distribution build

Hello, I have been struggling with this issue and delaying my release because of it. I have a BP project with “Show External Login UI” node that when fires on my Android phone the google play services window appears for like 3 seconds and then disappears indicating login failure. This happens in the Distribution build for the game, unlike non-distribution builds (Shipping or Development) where Logins and Achievements read/write operations are successful. What could be the reason for this ?

Found the problem, it was the keystore that was a debug one not a release keystore and also the game has to be downloaded from the app store in order for the services to function properly.