Get current Android/iTunes market

Hi,

I wonder if there’s any API function could help to determine the current market country. For instance, for android devices what is the device market in Google Play

I’m asking this because one I have a potential advertiser for one of my games. They’d like to include a logo of their brand in the main screen of my game, but this advertisement is only for a specific country.

Thanks

Hi @oquesada,

Check out the “system.getInfo()” API with a parameter of “targetAppStore”:

https://docs.coronalabs.com/api/library/system/getInfo.html

Best regards,

Brent

Hi again,

Actually, I mis-stated that. I see you want to determine the “localized market” (country). Perhaps you can gather enough information using:

[lua]

print( system.getPreference( “locale”, “country” ) )

[/lua]

https://docs.coronalabs.com/api/library/system/getPreference.html

Hi @oquesada,

Check out the “system.getInfo()” API with a parameter of “targetAppStore”:

https://docs.coronalabs.com/api/library/system/getInfo.html

Best regards,

Brent

Hi again,

Actually, I mis-stated that. I see you want to determine the “localized market” (country). Perhaps you can gather enough information using:

[lua]

print( system.getPreference( “locale”, “country” ) )

[/lua]

https://docs.coronalabs.com/api/library/system/getPreference.html