revmob for android not working

Here castillo I created a sample for you. The keys are mine but you should be able to build it and run it first then switch the keys and see what happens. This works on my Sony Z1 Compact running 5.1.

Here is a sample you can try also: https://dl.dropboxusercontent.com/u/28484098/RevMobSample.zip

Thought I already posted this. Sorry

This didn’t work for me on a device running 4.0.4.   Ads are not loading.

Is 4.1 also required for banner and fullscreen ads?  I know video not supported but I’m not using it.

I can see what device I have around that is older than 4.1 and test it. I’ll get back to you today.

I can confirm that it doesn’t work on 4.0.3. I tried many permutations and I can’t get it to work. It works fine on 5.1

This is what i tried in case other people also want to continue testing it:

  1. In the console I noticed an error about multidex from the app when running 4.0.3. So I added minsdkversion of 14 to try to make sure that it didn’t use multidex. This did not work.

  2. I also tried version 2851 of Corona from this year. I believe 2853 was the one that introduced multidex. This did nothing to fix the issue although the multidex error was gone.

  3. The only other error is related to not being able to connect to Google services. I tried to build it for Amazon since technically RevMob should support Amazon store and that store does not support Google services. The app at least for me won’t run when I target Amazon, it states it can’t find RevMob files.

  4. Removing Google Services from the app will cause it to crash on startup.

Thanks for the research.   How do you force an upgrade of a device?  My only functioning device is this cheap Sony tablet and it claims it’s up to date with 4.0.4.

In the meantime I’m going to go back to the old RevMob API I last used a couple years ago and see if it still works.

As for the upgrade, I don’t know of an easy way. I have a bunch of older phones but still newer than 4.0.3 sitting around (friends and family give them to me when they upgrade). If you want I can probably send you one.

The old lua based RevMob API still works for me.

Hey Agramonte. As for #3+4, Google play services are required for Revmob to work.

EDIT: Can I also see your build.settings file please?

I’ll do some more testing on my end and see if I can reproduce these issues on a 4.x device.

Thank you

Danny - this is my build.settings file.   I’m having the revmob plugin issue as well on 4.0.3.   The old revmob lua API still works, however.

settings = { orientation = { default = "portrait", supported = { "portrait" } }, iphone = { plist = { CFBundleIconFile = "Icon.png", CFBundleShortVersionString = "0.92", UILaunchStoryboardName = "LaunchScreen", NSAppTransportSecurity = { NSAllowsArbitraryLoads=true }, CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-40.png", "Icon-40@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-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png", "Icon-Small-40@3x.png" }, UIAppFonts = { "unispace rg.ttf", "Coastal.ttf", } }, }, android = { versionCode = "0920", largeHeap = true, usesPermissions = { "com.android.vending.CHECK\_LICENSE", "com.android.vending.BILLING", "android.permission.INTERNET", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_NETWORK\_STATE", } }, plugins = { ["plugin.revmob"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, }, }

I have contacted Revmob to see what they can do about this issue.

I will reply back when I have some information for you all.

Thank you for your patience.

No worries - at the moment I’m only planning on using fullscreen and banner, not video, so the old Revmob lua API is working fine for me.  But thanks for following up.

Danny and davemikesell,

As I plan to use RevMob in my app, should I avoid the rev mob plugin and use the original rev mob lua api???

Thanks

Bob

davemikesell,

You only had this issue on android, not iOS???

Thanks

Bob

Hi @hsheikh140,

Can you provide some details on which device you’re testing on?

Thanks,

Brent

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