Including ads in build.settings changes device orientation from Landscape to Portrait

Hi guys,

I have one simple question regarding device orientation   :smiley:

My game is in Landscape mode, and everything works fine until I add ads settings into build.settings file.

When I add ads settings Corona Simulator screen changes orientation from Landscape to Portrait.

I am using 2015.2646 (2015.5.27) version.

-- build.settings for project: Composer Framework settings = { orientation = { default ="landscapeRight", supported = { "landscapeLeft","landscapeRight" }, }, iphone = { plist = { UIApplicationExitsOnSuspend = true }, }, } --------------------------------------------------------------- ADS plugins = {    ["CoronaProvider.ads.vungle"] =    {       publisherId = "com.vungle",    },    ["CoronaProvider.ads.iads"] =    {       publisherId = "com.coronalabs",       supportedPlatforms = { iphone=true, ["iphone-sim"]=true },    },    ["CoronaProvider.ads.admob"] =    {       publisherId = "com.coronalabs",       supportedPlatforms = { android = true },    }, }, --------------------------------------------------------------- ADS

1) When I delete ads settings, device simulator orientation goes back to Landscape, so what is my problem?  :smiley:

Many thanks!

Ivan

It’s really hard to read your build.settings because things are not indented. It can’t easily tell where what each closing brace ( } ) is actually closing. But it seems to me your plugin table is either outside of the settings table (it needs to be a child of settings) or you’re missing a } at the end.

Rob

It’s really hard to read your build.settings because things are not indented. It can’t easily tell where what each closing brace ( } ) is actually closing. But it seems to me your plugin table is either outside of the settings table (it needs to be a child of settings) or you’re missing a } at the end.

Rob