WARNING: CoronaProvider.licensing.google is not configured in build.settings

Hello,

I noticed I had a warning which is:

WARNING: CoronaProvider.licensing.google is not configured in build.settings
 

However, in usesPermissions, I required:

“com.android.vending.CHECK_LICENSE”.

Could you please tell me what the issue is?

Thanks in advance

Pierre

Hi Pierre,

Did you set up licensing in your config.lua file as shown here?

https://docs.coronalabs.com/api/library/licensing/index.html

Brent

Hi,

Thanks for your reply, yes I did that too:

license = { google = { key = "My key" , policy = "serverManaged" }, },

Pierre

Hi Pierre,

Can you please post the entire contents of your build.settings file?

Thanks,

Brent

Hi,

Here it is:

settings = { orientation = { default = "portrait", }, plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, ["CoronaProvider.native.popup.social"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.gameNetwork.google"] = { --required! publisherId = "com.coronalabs", }, -- -- includes IAP Badger as a plug in ["plugin.iap\_badger"] = { -- required publisherId = "uk.co.happymongoose", }, ["plugin.google.iap.v3"] = { -- required publisherId = "com.coronalabs", supportedPlatforms = { android = true }, }, }, android = { allowAppsReadOnlyAccessToFiles = true, usesPermissions = { "android.permission.INTERNET", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.ACCESS\_FINE\_LOCATION", "android.permission.ACCESS\_COARSE\_LOCATION", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.INTERNET", "com.android.vending.BILLING", "com.android.vending.CHECK\_LICENSE", }, googlePlayGamesAppId = my App ID number--long App ID number (use yours!) }, }

Pierre

Hi Pierre,

I gathered some more information from the engineers. Since Google Licensing is only supported on Android, and it can’t be simulated in the Corona Simulator, we suggest that you do not call the “licensing.init()” function unless the app is targeting the “google” app store, as shown in our “Monetization/Licensing” sample project (you can find it in your Corona SDK application folder):

Corona SDK > SampleCode > Monetization > Licensing

Hope this helps,

Brent

Hi,

Thank you very much for your reply.

I am targeting “google” app store so I think I will keep it.

Pierre

Hi Pierre,

Did you set up licensing in your config.lua file as shown here?

https://docs.coronalabs.com/api/library/licensing/index.html

Brent

Hi,

Thanks for your reply, yes I did that too:

license = { google = { key = "My key" , policy = "serverManaged" }, },

Pierre

Hi Pierre,

Can you please post the entire contents of your build.settings file?

Thanks,

Brent

Hi,

Here it is:

settings = { orientation = { default = "portrait", }, plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, ["CoronaProvider.native.popup.social"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.gameNetwork.google"] = { --required! publisherId = "com.coronalabs", }, -- -- includes IAP Badger as a plug in ["plugin.iap\_badger"] = { -- required publisherId = "uk.co.happymongoose", }, ["plugin.google.iap.v3"] = { -- required publisherId = "com.coronalabs", supportedPlatforms = { android = true }, }, }, android = { allowAppsReadOnlyAccessToFiles = true, usesPermissions = { "android.permission.INTERNET", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.ACCESS\_FINE\_LOCATION", "android.permission.ACCESS\_COARSE\_LOCATION", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.INTERNET", "com.android.vending.BILLING", "com.android.vending.CHECK\_LICENSE", }, googlePlayGamesAppId = my App ID number--long App ID number (use yours!) }, }

Pierre

Hi Pierre,

I gathered some more information from the engineers. Since Google Licensing is only supported on Android, and it can’t be simulated in the Corona Simulator, we suggest that you do not call the “licensing.init()” function unless the app is targeting the “google” app store, as shown in our “Monetization/Licensing” sample project (you can find it in your Corona SDK application folder):

Corona SDK > SampleCode > Monetization > Licensing

Hope this helps,

Brent

Hi,

Thank you very much for your reply.

I am targeting “google” app store so I think I will keep it.

Pierre