Hello. I have a problem with InMobi with Corona Simulator 2013.1076.
The problem doesn’t appear on simulator because I don’t think the ads library can be used on it.
When I try to enter a scene in storyboard that contains InMobi i get the following error:
Runtime Error
…\scene9.lua:39: java.lang.SecurityException: Neither user 10155 nor current process has android.permission.INTERNET.
Again, this error appears on device in a pop-up.
my lines of InMobi code:
local ads = require "ads" local platformName = system.getInfo("platformName") if platformName == "iPhone OS" then ads.init( "inmobi", "7f442000xxxxxxxxxxxxxxxxxxxxxxx" ) ads.show( "banner320x48", { x=display.contentWidth/4, y=(display.contentHeight - 42), interval=10, testMode=true } ) elseif platformName == "Android" then ads.init( "inmobi", "7f442000xxxxxxxxxxxxxxxxxxxxxxx" ) ads.show( "banner320x48", { x=display.contentWidth/4, y=(display.contentHeight - 42), interval=10, testMode=true } ) end
line 39 is
ads.show( "banner320x48", { x=display.contentWidth/4, y=(display.contentHeight - 42), interval=10, testMode=true } )
On the old build I didn’t have this problem.
Any suggestions?
My build.settings has the following:
-- Android permissions androidPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", }, ]]-- }
Thank you and waiting for a response,
Stefan