Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Vungle ads produce black screen with latest public build
Started by Daniel W. Apr 05 2014 06:51 PM

12 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Daniel W.

[GLOBAL: userInfoPane.html]
Daniel W.
  • Contributor

  • 249 posts
  • Corona SDK

Hello!

 

I've used Vungle for quite some time now and it's worked great for me before. Now, I'm using the latest public build - 2014.2189 - and my app now goes to a black screen when trying to init Vungle ads on my iPhone 5s.

 

My code has worked before, the only different now is that I'm using the latest public build. Anyone else encounter this issue?



[TOPIC: post.html]
#2

Appletreeman

[GLOBAL: userInfoPane.html]
Appletreeman
  • Contributor

  • 444 posts
  • Corona SDK

Doing this for me as well at the moment.  

Looking at the device console in Xcode organiser shows the following error:

 

ERROR: Could not load provider (vungle) due to the following reason: module 'CoronaProvider.ads.vungle' not found:resource (CoronaProvider.ads.vungle.lu) does not exist in archive
no field package.preload['CoronaProvider.ads.vungle']
no file '/var/mobile/Applications/A349F642-2423-4EDF-8A5F-6013B9FF7A70/Hippo,NO!.app/CoronaProvider.ads.vungle.lua'
no file '/var/mobile/Applications/A349F642-2423-4EDF-8A5F-6013B9FF7A70/Hippo,NO!.app/CoronaProvider.ads.vungle.lua'
no file './CoronaProvider.ads.vungle.so'
no file '/var/mobile/Applications/A349F642-2423-4EDF-8A5F-6013B9FF7A70/Hippo,NO!.app/CoronaProvider.ads.vungle.so'
no file './CoronaProvider.so'
no file '/var/mobile/Applications/A349F642-2423-4EDF-8A5F-6013B9FF7A70/Hippo,NO!.app/CoronaProvider.so'CoronaProvider.ads.vungle.
stack traceback:
[C]: in function 'assert'
?: in function 'requireProvider'
?: in function 'setCurrentProvider'
?: in function 'init'
?: in main chunk
 
Don't know if that helps anyone, but given the fast response times in some of these sub forums I'm not gonna hold my breath.


[TOPIC: post.html]
#3

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

Hi @Appletreeman,

Can you post your code for both build.settings, and also where you make a call to the Vungle system?

 

Thanks,

Brent



[TOPIC: post.html]
#4

Appletreeman

[GLOBAL: userInfoPane.html]
Appletreeman
  • Contributor

  • 444 posts
  • Corona SDK

Build.settings:

-- build.settings 
settings = 
{  
     orientation = 
     { 
         default = "landscapeRight", 
         supported = { "landscapeLeft", "landscapeRight" } 
      }, 

      iphone =  
      {  
         plist=  
         {  
              UIApplicationExitsOnSuspend = false,  
              UIHiddenStatusBar="YES",  
              CFBundleIconFile="Icon.png", 
              UIAppFonts =
                          {"JINKY.ttf",
                          "EraserRegular.ttf",
                            "PUSAB___.otf",
                            "ARCADE_R.TTF"},
              CFBundleIconFiles = {  
                  "Icon.png",
                  "Icon@2x.png",
                  "Icon-Small-40.png",
                  "Icon-Small-40@2x.png",
                  "Icon-60.png",
                  "Icon-60@2x.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",
              },  
         },--
         plugins =
  {
    -- key is the name passed to Lua's 'require()'
    ["CoronaProvider.ads.vungle"] =
    {
      -- required
      publisherId = "com.vungle",
    },
  },--  
       },  
}

Then in my main.lua (near the top)

ads = require "ads"
ads.init( "vungle", "my app id")

As soon as I launch the app on my device I just get a black screen. 



[TOPIC: post.html]
#5

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

Do you get any error report in the device log? Can you remove those trailing unnecessary comment bits (--) above and below the "plugins" table?



[TOPIC: post.html]
#6

Appletreeman

[GLOBAL: userInfoPane.html]
Appletreeman
  • Contributor

  • 444 posts
  • Corona SDK

I'm at work now but will try that when I get home tonight.



[TOPIC: post.html]
#7

Appletreeman

[GLOBAL: userInfoPane.html]
Appletreeman
  • Contributor

  • 444 posts
  • Corona SDK

I've tried that Brent but I'm still getting the exact same error.  There is no error in the device log, just this one in the console.



[TOPIC: post.html]
#8

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,922 posts
  • Enterprise

There were some issues with the Vungle plugin earlier today.  Can you try it again?

 

Rob



[TOPIC: post.html]
#9

Appletreeman

[GLOBAL: userInfoPane.html]
Appletreeman
  • Contributor

  • 444 posts
  • Corona SDK

Still getting the same problem...

I get the default.png displayed and then blank screen.

 

May 31 09:39:02 homes-iPad Hippo,NO![1732] <Warning>: Runtime error
ERROR: Could not load provider (vungle) due to the following reason: module 'CoronaProvider.ads.vungle' not found:resource (CoronaProvider.ads.vungle.lu) does not exist in archive
no field package.preload['CoronaProvider.ads.vungle']
no file '/var/mobile/Applications/FC52ED27-2B81-4B7C-B9C8-C0EF43BB518C/Hippo,NO!.app/CoronaProvider.ads.vungle.lua'
no file '/var/mobile/Applications/FC52ED27-2B81-4B7C-B9C8-C0EF43BB518C/Hippo,NO!.app/CoronaProvider.ads.vungle.lua'
no file './CoronaProvider.ads.vungle.so'
no file '/var/mobile/Applications/FC52ED27-2B81-4B7C-B9C8-C0EF43BB518C/Hippo,NO!.app/CoronaProvider.ads.vungle.so'
no file './CoronaProvider.so'
no file '/var/mobile/Applications/FC52ED27-2B81-4B7C-B9C8-C0EF43BB518C/Hippo,NO!.app/CoronaProvider.so'CoronaProvider.ads.vungle.
stack traceback:
[C]: in function 'assert'
?: in function 'requireProvider'
?: in function 'setCurrentProvider'
?: in function 'init'
?: in main chunk


[TOPIC: post.html]
#10

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,922 posts
  • Enterprise

Can you check your build.settings to make sure everything is fine there?  I just built an app of mine that use Vungle and installed it on my iPad and it runs as expected.



[TOPIC: post.html]
#11

Appletreeman

[GLOBAL: userInfoPane.html]
Appletreeman
  • Contributor

  • 444 posts
  • Corona SDK

Here's my build settings...

 settings = 
{  
     orientation = 
     { 
         default = "landscapeRight", 
         supported = { "landscapeLeft", "landscapeRight" } 
      }, 

      iphone =  
      {  
         plist=  
         {  
              UIApplicationExitsOnSuspend = false,  
              UIHiddenStatusBar="YES",  
              CFBundleIconFile="Icon.png", 
              UIAppFonts =
                          {"JINKY.ttf",
                          "EraserRegular.ttf",
                            "PUSAB___.otf",
                            "ARCADE_R.TTF"},
              CFBundleIconFiles = {  
                  "Icon.png",
                  "Icon@2x.png",
                  "Icon-Small-40.png",
                  "Icon-Small-40@2x.png",
                  "Icon-60.png",
                  "Icon-60@2x.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",
              },  
         },
         plugins =
  {
    ["CoronaProvider.ads.vungle"] =
    {
      publisherId = "com.vungle",
    },
  },  
       },  
}


[TOPIC: post.html]
#12

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,922 posts
  • Enterprise

Try this:

settings = 
{  
    orientation = 
    { 
        default = "landscapeRight", 
        supported = { "landscapeLeft", "landscapeRight" } 
    }, 

    iphone =  
    {  
        plist=  
        {  
            UIApplicationExitsOnSuspend = false,  
            UIHiddenStatusBar="YES",  
            CFBundleIconFile="Icon.png", 
            UIAppFonts =
            {
                "JINKY.ttf",
                "EraserRegular.ttf",
                "PUSAB___.otf",
                "ARCADE_R.TTF"
            },
            CFBundleIconFiles = {  
                "Icon.png",
                "Icon@2x.png",
                "Icon-Small-40.png",
                "Icon-Small-40@2x.png",
                "Icon-60.png",
                "Icon-60@2x.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",
            },  
        },
    },
    plugins =
    {
        ["CoronaProvider.ads.vungle"] =
        {
            publisherId = "com.vungle",
        },
    },  
}

Your plugins was inside the plist table instead of being inside the settings table.



[TOPIC: post.html]
#13

Appletreeman

[GLOBAL: userInfoPane.html]
Appletreeman
  • Contributor

  • 444 posts
  • Corona SDK

That's brilliant Rob.  many thanks!.  Having never used any plugins before I wasn't aware it was wrong.
Any idea on my other question?  Is there some kind of listener so you can tell if an ad has finished playing?

Ads are initialised in my main.lua, but called in my game over.lua

Linky to thread




[topic_controls]
[/topic_controls]