New gamenetwork API (gpgs) makes app crash

Hi

I need leaderboard and admob ads in my application

in my build.setting file

[“plugin.google.play.services”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, android=true }
},

[“plugin.gpgs”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { android=true }
}

these two plugins I have added

when I do this at the corona server side there is something problem with google play service and it gives me below error

ava.lang.IllegalStateException: The meta-data tag in your app’s AndroidManifest.xml does not have the right value.  Expected 9452000 but found 4242000.  You must have the following declaration within the <application> element:     <meta-data android:name=“com.google.android.gms.version” android:value="@integer/google_play_services_version" />

If I removed “plugin.google.play.services” plugin from build.setting and removed admob code  then its working fine.

but I need both plugins at a time so please fix it asap.

for admob I refer https://docs.coronalabs.com/plugin/ads-admob-v2/index.html

for gpgs https://docs.coronalabs.com/plugin/gpgs/index.html

Thanks.

Really no one reads my post yet ?

I guess it happens when you use both admob and new gpgs plugin. I too had that problem but when I remove the admob plugin it works fine. I think it giving an error about play services version because we import admob plugin in a weird way like this.  

["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } },&nbsp;

and the gpgs plugin like this.

["plugin.gpgs"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }&nbsp;

But the old gameNetwork plugin works fine with admob. 

plugin like this.  

Hello @udesh.upalanka. Welcome to the forums!

This is a known issue. The new GPGS and the really old AdMob plugin are incompatible. Our engineers are working on a solution.

Rob

I know that the old gameNetwork plugin and gpgs are not compatible, but, can i use gameNetwork on iOS and gpgs on Android? Like this?:
 

["CoronaProvider.gameNetwork.apple"] = { -- Apple Game Center publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, }, }, ["plugin.gpgs"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["android"] = true, } },

gpgs won’t work. I do have a huge list of plugins. (But don’t use admob) I can call gpgs.init but gpgs.login fails silently.
 
Our build.settings does include the Tenjin plugin:
 

["plugin.tenjin"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone = true, android = true, ["iphone-sim"] = true } }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true } },

Which needs to include those two entries. I am guessing one of those might be the culprit.

This is the AdMob plugin:

["plugin.google.play.services"] = { &nbsp;&nbsp;&nbsp;&nbsp;publisherId = "com.coronalabs", &nbsp;&nbsp;&nbsp;&nbsp;supportedPlatforms = { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;android = true &nbsp;&nbsp;&nbsp;&nbsp;}

Rob