Hi,
I have another request that is making my game to be flagged by Google Play reviewers.
I’ve been told my game is asking for the Google+ scope unnecessarily. After looking at the Android docs, the solution for this issue is: “Don’t request any additional scopes unless you absolutely need them”
In the Android docs page the solution goes as shown below.
Early versions of our samples and documentation created a GoogleApiClient as follows:
// Don’t do it this way!
GoogleApiClient gac = new GoogleApiClient.Builder(this, this, this)
.addApi(Games.API)
.addScope(Plus.SCOPE_PLUS_LOGIN) // The bad part
.build();
// Don’t do it this way!
In this case, the developer is specifically requesting the plus.login scope. If you ask for plus.login, your users will get a consent dialog.
Solution: Ask only for the scopes you need
Remove any unneeded scopes from your GoogleApiClient construction along with any APIs you no longer use.
// This way you won’t get a consent screen
GoogleApiClient gac = new GoogleApiClient.Builder(this, this, this)
.addApi(Games.API)
.build();
// This way you won’t get a consent screen
I tried to find a way to stop adding the SCOPE_PLUS_LOGIN through Corona but I couldn’t find any parameter or method in the GPGS plugin for that. Has anyone ever experienced the same problem?
Thanks in advance!
Br,
Cleverson