Hello Everyone,
Today i am presenting an issue that i am facing with latest GPGS plugin and Navigation Bar.
May be i am doing something wrong or something needs to be taken care with plugin use.
Let me tell what i am doing:
1: I have created a game called Forty Thieves for Android with Corona version 2017.3068.
2: As i know there is some issues with hiding Navigation Bar and Status Bar so i already used following code in my main.lua.
display.setStatusBar(display.HiddenStatusBar)
if ( system.getInfo(“platformName”) == “Android” ) then
local androidVersion = string.sub( system.getInfo( “platformVersion” ), 1, 3)
if( androidVersion and tonumber(androidVersion) >= 4.4 ) then
native.setProperty( “androidSystemUiVisibility”, “immersiveSticky” )
–native.setProperty( “androidSystemUiVisibility”, “lowProfile” )
elseif( androidVersion ) then
native.setProperty( “androidSystemUiVisibility”, “lowProfile” )
end
end
Using this code the game look great and no issues at all.
3: Now issue came when i login using gpgs for accessing leaderboard.
Issue No 1: I tested this on 3 devices, Samsung S4, Nexus, LYF wtater8. so for Samsung S4, which uses Android 5.0.1 version, it simply gives error while login as follows:
Login event: {
I/Corona (29120): “errorCode”:8,
I/Corona (29120): “errorMessage”:“internal error”,
I/Corona (29120): “isError”:true,
I/Corona (29120): “name”:“login”,
I/Corona (29120): “phase”:“logged in”
I/Corona (29120): }
So i checked that I have enabled the Drive api , Google play service api and Google play developer Api.
Still I am getting this issue.
It is working good and logging perfectly on other 2 devices, which is strange.
Issue No 2, Which is a major issue: On 2 devices where i am able to login gpgs and then when i open the leaderboard then darker navigation bar buttons come on screen and makes the game screen shrink to fit buttons. Which is obvious. but now when i check leaderboard and then press back button and close leaderboard then that navigation bar got struck on screen and did not move anywhere. These devices are using Android 6.0.1 version.
Note: My leaderboard and game services are already published and Drive,gpgs and Google developer Api’s are also enabled. So the margin of error is very less.
I am not saying that plugin has errors may be i am doing something wrong. Please correct me on this point.
Thanks in Advance for any corrections.
Sahil Sharma