Problem With Inmobi

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

Same for me!!

Due to popular demand, we’ve removed all Android permissions from all Corona builds.  You now have to opt-in to using them.  When you see a permission error on screen, that mean your app is using an API that requires an Android permission.  InMobi requires 3 Android permission as documented here…

http://docs.coronalabs.com/api/library/ads/init.html#android

Also have a look at our “Ads/InMobi” sample project’s “build.settings” file for an example.

Once you have those 3 permission set, your app will run fine.

Thanks for the response; it works now.

Same for me!!

Due to popular demand, we’ve removed all Android permissions from all Corona builds.  You now have to opt-in to using them.  When you see a permission error on screen, that mean your app is using an API that requires an Android permission.  InMobi requires 3 Android permission as documented here…

http://docs.coronalabs.com/api/library/ads/init.html#android

Also have a look at our “Ads/InMobi” sample project’s “build.settings” file for an example.

Once you have those 3 permission set, your app will run fine.

Thanks for the response; it works now.