I am getting the following message when trying to run revmob on Android:
[RevMob] Reason: Device requirements not met. (422)
I am getting the following message when trying to run revmob on Android:
[RevMob] Reason: Device requirements not met. (422)
Hey me too, im trying to integrate Revmob on android and nothing happens, i did everything on build and main.lua but seems not availeable
Im working on a game for both IOS and Android and trying to integrate Revmob for both iOS and Android. For iOS revmob test ads are showing perfectly in the Corona Simulation , how ever when I run the simulation for android i get the following message :
[RevMob] Reason: Device requirements not met. (422)
I have added the following to my project files :
Build.lua:
android =
{
usesPermissions =
{
“android.permission.INTERNET”,
“android.permission.WRITE_EXTERNAL_STORAGE”,
“android.permission.ACCESS_NETWORK_STATE”,
},
},
Main.lua:
local RevMob = require( “revmob” )
local REVMOB_IDS = { [“Android”] = “”, [“iPhone OS”] = “” }
RevMob.startSession(REVMOB_IDS)
Scene_Game.lua:
local fullscreen = RevMob.createFullscreen()
fullscreen:show()
Hi @Rene.castillo, @hsheikh140,
In both of your cases, I’ll need to see your entire “build.settings” file contents. Sometimes it’s the most simple syntax error…
Brent
hi brent here is my entire build.settings :
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight
settings =
{
orientation =
{
default = “landscapeLeft”,
supported = { “landscapeLeft”, “landscapeRight” },
},
android =
{
usesPermissions =
{
“android.permission.INTERNET”,
“android.permission.WRITE_EXTERNAL_STORAGE”,
“android.permission.ACCESS_NETWORK_STATE”,
},
},
iphone =
{
plist =
{
NSAppTransportSecurity =
{
NSAllowsArbitraryLoads = true },
UIAppFonts = {“MadeinChina.ttf”},
UIStatusBarHidden=true,
UIViewControllerBasedStatusBarAppearance = false,
UIApplicationExitsOnSuspend = false,
UIPrerenderedIcon = true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-60.png”,
“Icon-60@2x.png”,
“Icon-60@3x.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-76.png”,
“Icon-76@2x.png”,
“Icon-Small-40.png”,
“Icon-Small-40@2x.png”,
“Icon-Small-40@3x.png”,
“Icon-Small-50.png”,
“Icon-Small-50@2x.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”,
“Icon-Small@3x.png”
},
},
},
plugins =
{
[“CoronaProvider.gameNetwork.apple”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true }
},
[“CoronaProvider.ads.vungle”] =
{
publisherId = “com.vungle”
},
[“plugin.google.play.services”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { android=true }
},
},
}
Hi @hsheikh140,
I see that you didn’t add the RevMob plugin to your build.settings…
[lua]
[“plugin.revmob”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, android=true }
},
[/lua]
Brent
You seem to be using the old Lua based Revmob plugin.
We now offer a plugin that uses Revmob’s native SDK’s.
https://docs.coronalabs.com/daily/plugin/revmob/index.html
Check out the docs above.
Thanks
–
– For more information on build.settings see the Corona SDK Build Guide at:
– http://docs.coronalabs.com/guide/distribution/buildSettings/index.html
–
settings =
{
plugins=
{
[“plugin.revmob”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, android=true }
},
[“plugin.google.play.services”] =
{
publisherId = “com.coronalabs”,
--supportedPlatforms = { android=true, iphone=true },
},
},
orientation =
{
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight
default = “portrait”,
supported = { “portrait”, }
},
excludeFiles =
{
– Include only the necessary icon files on each platform
all = { “*.ai” },
iphone = { “Icon-*dpi.png” },
android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png” },
},
–
– iOS Section
–
iphone =
{
plist =
{
NSAppTransportSecurity = { NSAllowsArbitraryLoads=true },
UIStatusBarHidden = false,
UIPrerenderedIcon = true, – set to false for “shine” overlay
–UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend
CFBundleIconFiles =
{
“Icon.png”,
“Icon@2x.png”,
“Icon-60.png”,
“Icon-60@2x.png”,
“Icon-60@3x.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-76.png”,
“Icon-76@2x.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”,
“Icon-Small@3x.png”,
“Icon-Small-40.png”,
“Icon-Small-40@2x.png”,
“Icon-Small-50.png”,
“Icon-Small-50@2x.png”,
},
–[[
– iOS app URL schemes:
CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
“fbXXXXXXXXX”, – replace XXXXXXXXX with your Facebook appId
}
}
}
–]]
}
},
–
– Android Section
–
android =
{
usesPermissions =
{
“android.permission.INTERNET”,
},
},
}
local revmob = require( “plugin.revmob” )
–banner,popupinicial,popupsalida,gameoverint,continuarvideo
local placementID={“570a54cdb492cf065b514efa”,“570bf09d46da18e4655e315d”,“570c272ce32c76620b0ec273”,“570c27495e696354498990de”,“570c27b2e32c76620b0ec275”}
local tipo={“banner”,“interstitial”,“interstitial”,“video”,“rewardedVideo”}
local function adListener( event )
if ( event.phase == “init” ) then – Successful initialization
print( event.isError )
elseif ( event.phase == “loaded” ) then – The ad was successfully loaded
print( event.type )
elseif ( event.phase == “failed” ) then – The ad failed to load
print( event.type )
print( event.isError )
print( event.response )
end
end
– Initialize RevMob
revmob.init( adListener, { appId=“570a54ccb492cf065b514ef8” } )
revmob.show( placementID[1], { yAlign=“bottom” } )
nothing happends
What device are you testing this on, and what version of Android does your device run? (e.g 4.1, 5.1 etc)
Thank you. It solved my issue
5.1 android sony xperia c5 ultra
From your code sample, I don’t see where you are calling revmob.load?
The flow goes like this
init()
load()
show() - When the ad has loaded
local function adListener( event )
if ( event.phase == “init” ) then – Successful initialization
print( event.isError )
revmob.load( placementID[1], { yAlign=“bottom” } )
elseif ( event.phase == “loaded” ) then – The ad was successfully loaded
print( event.type )
revmob.show( PL, { yAlign=“bottom” } )
elseif ( event.phase == “failed” ) then – The ad failed to load
print( event.type )
print( event.isError )
print( event.response )
local alert = native.showAlert( “Error Ads”,tostring(event.response) , { “OK”})
end
end
nothing either,
I suggest that you take a few steps back and re-read the documentation. It’s important to read through each step, to ensure you’re calling the apis correctly.
You should be getting messages printed in the Android debug console (adb logcat, Android monitor or your tool of choice). There is a nice guide on the blog about getting set up with that, if you haven’t already done so.
The call you are making to the load() method is incorrect (missing params, including ones that don’t belong in that function call)
I tried everything and nothing happends you have some code example to compare i want to show banner, insterstitial, video and rewarded videos, and when no fill rate show ads from another network like admob or chartboost
Hi @Rene.castillo,
We’ll be assembling a sample for this plugin, probably within a week or so. In the meantime, are you 100% sure that your placement IDs set up with RevMob are correctly configured?
Brent
Yes, sure