Hi, my achievements doesn’t show, i published they, but i don’t know why…
my build.settings
[lua]
settings =
{
plugins =
{
– key is the name passed to Lua’s ‘require()’
[“CoronaProvider.gameNetwork.google”] =
{
– required
publisherId = “com.coronalabs”,
},
[“plugin.google.play.services”] =
{
publisherId = “com.coronalabs”,
},
},
orientation =
{
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight
default = “landscapeRight”,
supported = { “landscapeRight”,“landscapeLeft” }
},
excludeFiles =
{
– Include only the necessary icon files on each platform
iphone = { “Icon-*dpi.png”, },
android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },
},
–
– iOS Section
–
iphone =
{
plist =
{
UIStatusBarHidden = false,
UIPrerenderedIcon = true, – set to false for “shine” overlay
–UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend
CFBundleIconFiles =
{
“Icon.png”,
“Icon@2x.png”,
“Icon-60.png”,
“Icon-60@2x.png”,
“Icon-60@3x.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-76.png”,
“Icon-76@2x.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”,
“Icon-Small@3x.png”,
“Icon-Small-40.png”,
“Icon-Small-40@2x.png”,
“Icon-Small-50.png”,
“Icon-Small-50@2x.png”,
},
–[[
– iOS app URL schemes:
CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
“fbXXXXXXXXX”, – replace XXXXXXXXX with your Facebook appId
}
}
}
–]]
}
},
–
– Android Section
–
android =
{
googlePlayGamesAppId = “xxxxxxxx”,
usesPermissions =
{
“android.permission.INTERNET”,
},
},
}
[/lua]
and main.lua
[lua]
gameNetwork = require “gameNetwork”
gameNetwork.init(“google”)
gameNetwork.request(“login”,
{
userInitiated = true
})
function unlockAchievementListener(event)
gameNetwork.request(“unlockAchievement”,
{
achievement =
{
identifier = “XXXXXXX” – The id of the achievement to unlock for the current user
}
})
end
timer.performWithDelay(1000, function() – for testing, but doesn’t works…
gameNetwork.show(“achievements”)
end, 1)
[/lua]
and in level2.lua in scene:create
[lua]
unlockAchievementListener()
[/lua]
Nothing appear…eccept the google play login in main.lua…but the gameNetwork.show(“achievements”) and unlockAchievements doesn’t works…i don’t know what to do…help me please