I have an app that successfully connects to GPGS and leaderboards, and another that does not, essentially sharing the same code and setup. I have been trying everything I know for 2 days and cannot discover why.
The app that works runs on the same device, and I have rebuilt that app with the same build of Corona, 2019.3460. The app that works is portrait, the one that doesn’t is landscape, but I can’t imagine that is relevant.
The rest is about the app that does not work. Each item I have checked over a dozen times.
- I have verified the app ID in build.settings and on the Google Console
- I have set, reset, checked that the linked project has these APIs: Google Drive, Game Play Game Management, Google Play Game Services, Google Play Android Developer API
- I have set and ensured that the correct sha1 is used to sign the app and to set credentials of the linked app
- I have captured the device log with the simple adb logcat (trace attached)
The leaderboards are published, and the app does not do license check. Loading directly with adb or from internal test does not make any difference.
License checking is turned off (bypassed) at this time.
The app does the Google Play login, and I get success back. After getting the ‘login’ event, I try isConnected() and get false, and I also try leaderboards.show() and get not connected. If I manually (from a leaderboard button) try leaderboards.show() (with or without leaderboardID), I get not connected.
On the Google console, there are many Google Drive events – also 100% errors on those.
There were also a few Google Play Games Services requests, no errors there.
I also tried adding my older app to these leaderboards, and got as far as connected to them and trying to show the leaderboards, with a ‘broken’ message, but at least I get the screen for the leaderboard.
I don’t know what else to try. If I could figure out how to delete all that I have in Google Play Console, I would, but there does not seem to be a way to do that. Even unpublishing the ‘game’ and the leaderboards does not seem to help.
Let me know what I should try. There must be something I have overlooked.
David