Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

WARNING: The 'ads' library is not available on this platform | on iPhone 6 with iOS 9.2
Started by fzorrilla Jan 28 2016 05:40 PM

13 replies to this topic
ios vungle ads

Best Answer fzorrilla , 02 February 2016 - 06:52 PM

Hi,

 

It seems that something was wrong with my provisioning profile on my iPhone 6.

I clear all my provisioning profiles on the device and recreate them using Xcode 7.
 
Then did the Build with the new provisioning profiles and the error disappeared.
 
The Vungle Ads began to show in the simulator and on the device.
 
Thank you all for the help.

[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

fzorrilla

[GLOBAL: userInfoPane.html]
fzorrilla
  • Observer

  • 7 posts
  • Corona SDK

Hey there,

 
When I try to show ads on an actual device (iPhone 6 / iOS 9.2), I have the following error:
 
<Warning>: WARNING: The 'ads' library is not available on this platform.
 
This is the code:
 
ads:setCurrentProvider( "vungle" )
ads.load( "interstitial” )
 
I'm using Admob banner and want to use the interstitial of Vungle.
 
Thanks!


[TOPIC: post.html]
#2

Alex@Panc

[GLOBAL: userInfoPane.html]
Alex@Panc
  • Corona Geek

  • 1,731 posts
  • Corona SDK

[TOPIC: post.html]
#3

fzorrilla

[GLOBAL: userInfoPane.html]
fzorrilla
  • Observer

  • 7 posts
  • Corona SDK

Hey there,

 
I have disabled the ATS but I still get the same error. Here is my configuration in bulid.settings:
 
iphone =
    {
        plist =
        {
            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",
            },
            
            NSAppTransportSecurity =
            {
                NSAllowsArbitraryLoads = true
            },
--[[
-- iOS app URL schemes:
CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
"fbXXXXXXXXX",  -- replace XXXXXXXXX with your Facebook appId
}
}
}
            --]]
        }


[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,535 posts
  • Enterprise

Can you post all the messages from your console log? Also can you provide more of your ad code?



[TOPIC: post.html]
#5

fzorrilla

[GLOBAL: userInfoPane.html]
fzorrilla
  • Observer

  • 7 posts
  • Corona SDK

Hi,

 

iOS console:

 

Jan 30 08:38:37 Francis-Zorrillas-iPhone-6 KiKI[1717] <Warning>: Platform: iPhone / iPhone7,2 / 9.2 / Apple A8 GPU / OpenGL ES 2.0 Apple A8 GPU - 75.11.5 / 2015.2731

Jan 30 08:38:37 Francis-Zorrillas-iPhone-6 KiKI[1717] <Warning>: cache path: /var/mobile/Containers/Data/Application/BB774FA6-1FB4-4758-B86C-84B6E7A36AEB/Library/Caches/vungle
Jan 30 08:38:38 Francis-Zorrillas-iPhone-6 mediaserverd[1056] <Notice>: '' com.netflix.Netflix(pid = 1627) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Jan 30 08:38:38 Francis-Zorrillas-iPhone-6 SpringBoard[58] <Warning>: Application 'UIKitApplication:com.netflix.Netflix[0xfd32]' was killed by jetsam.
Jan 30 08:38:38 Francis-Zorrillas-iPhone-6 SpringBoard[58] <Warning>: Memory level is not normal or this app was killed by jetsam. Pending auto-relaunch of '<FBApplicationProcess: 0x10c1e1170; Netflix; pid: -1>'.
Jan 30 08:38:38 Francis-Zorrillas-iPhone-6 SpringBoard[58] <Warning>: Application 'UIKitApplication:com.broadsoft.ucone2014[0xdffd]' was killed by jetsam.
Jan 30 08:38:38 Francis-Zorrillas-iPhone-6 SpringBoard[58] <Warning>: Memory level is not normal or this app was killed by jetsam. Pending auto-relaunch of '<FBApplicationProcess: 0x10a6009b0; BroadTouch; pid: -1>'.
Jan 30 08:38:38 Francis-Zorrillas-iPhone-6 SpringBoard[58] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
Jan 30 08:38:38 Francis-Zorrillas-iPhone-6 SpringBoard[58] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
Jan 30 08:38:38 Francis-Zorrillas-iPhone-6 SpringBoard[58] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
Jan 30 08:38:38 Francis-Zorrillas-iPhone-6 SpringBoard[58] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
Jan 30 08:38:38 Francis-Zorrillas-iPhone-6 duetexpertd[364] <Warning>: mme: FrancisZorrilla.KiKI, 2016-01-30 12:38:38 +0000, 
Jan 30 08:38:44 Francis-Zorrillas-iPhone-6 KiKI[1717] <Warning>: Received memory warning.
Jan 30 08:38:48 Francis-Zorrillas-iPhone-6 KiKI[1717] <Warning>: Button was pressed and released: id = HOME, phase = ended
Jan 30 08:38:48 Francis-Zorrillas-iPhone-6 KiKI[1717] <Warning>: WARNING: The 'ads' library is not available on this platform.
 
Ad code:
 
--Home.lua
 
myData.vungleAppID = "My AppID" --Changed for this post
 
 
local function adListener( event )
    --(more on this later)
end
 
--ads.init( "admob", myData.bannerAppID, adListener )
 
ads.init( "vungle", myData.vungleAppID )
 
--Menu.lua
 
--ads:setCurrentProvider( "vungle" )
 ads.load( "interstitial" )
 
Thanks!


[TOPIC: post.html]
#6

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,535 posts
  • Enterprise

Were do you do:

local ads = require( "ads" )

???



[TOPIC: post.html]
#7

fzorrilla

[GLOBAL: userInfoPane.html]
fzorrilla
  • Observer

  • 7 posts
  • Corona SDK

In both. In Menu.lua and Home.lua



[TOPIC: post.html]
#8

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,535 posts
  • Enterprise

Is that your entire build.settings file?  Also when posting code like build.settings and such. Please copy (CMD-C) the code and click the blue <> button in the forum editor and paste the code in (CMD-V). Can you post your entire build.settings.

 

Rob



[TOPIC: post.html]
#9

fzorrilla

[GLOBAL: userInfoPane.html]
fzorrilla
  • Observer

  • 7 posts
  • Corona SDK

Hi,

 

Heres is the build.settings file:

--
-- 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.toast'] = {publisherId = 'com.spiralcodestudio'},
        
        ["plugin.google.play.services"] = {
            publisherId = "com.coronalabs"
        },
        ["CoronaProvider.ads.vungle"] = {
            publisherId = "com.vungle"
        },   
    },
    
    orientation =
    {
        -- Supported values for orientation:
        -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight
        
        default = "portrait",
        supported = { "portrait", }
    },
    
    excludeFiles =
    {
        -- Include only the necessary icon files on each platform
        iphone = { "Icon-*dpi.png", },
        android = { "Icon.png", "Icon-Small-*.png", "Icon*@2x.png", },
    },
    
    --
    -- iOS Section
    --
    iphone =
    {
        plist =
        {
            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",
            },
            
            NSAppTransportSecurity =
            {
                NSAllowsArbitraryLoads = true
            },
			--[[
			-- iOS app URL schemes:
			CFBundleURLTypes =
			{
				{
					CFBundleURLSchemes =
					{
						"fbXXXXXXXXX",  -- replace XXXXXXXXX with your Facebook appId
					}
				}
			}
            --]]
        }
    },
    
    --
    -- Android Section
    --
    android =
    {
        usesPermissions =
        {
            "android.permission.INTERNET",
        },
    },
}

Thanks!



[TOPIC: post.html]
#10

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,535 posts
  • Enterprise

Your build.settings looks good. Guess we need to see the relevant parts of Home.lua next.



[TOPIC: post.html]
#11

fzorrilla

[GLOBAL: userInfoPane.html]
fzorrilla
  • Observer

  • 7 posts
  • Corona SDK

Hi,

 

I have the same error with the Vungle sample app (https://github.com/Vungle/Corona-Plugin).

 

Here is the relevant parts of Home.lua

---------------------------------------------------------------------------------
--
-- Home.lua
--
---------------------------------------------------------------------------------

local sceneName = ...

local composer = require( "composer" )
local scene = composer.newScene()

local widget = require( "widget" )

local myData = require( "mydata" )

local ads = require( "ads" )

---------------------------------------------------------------------------------

myData.vungleAppID = "MyAppID"


local function adListener( event )
    --(more on this later)
end


ads.init( "vungle", myData.vungleAppID )

---------------------------------------------------------------------------------


Thanks!!!



[TOPIC: post.html]
#12

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,535 posts
  • Enterprise

I just built one of my apps that has Vungle in it and it ran with no problems. I don't see anything wrong in what you've done except that you're not passing the listener function to the ads.init() call, but the message is saying you've not required ads.  Maybe try to put the listener function into the init call.

 

If not, I may have to have you zip up the project and let me take a look at the whole.

 

Rob



[TOPIC: post.html]
#13

fzorrilla

[GLOBAL: userInfoPane.html]
fzorrilla
  • Observer

  • 7 posts
  • Corona SDK

  Best Answer

Hi,

 

It seems that something was wrong with my provisioning profile on my iPhone 6.

I clear all my provisioning profiles on the device and recreate them using Xcode 7.
 
Then did the Build with the new provisioning profiles and the error disappeared.
 
The Vungle Ads began to show in the simulator and on the device.
 
Thank you all for the help.


[TOPIC: post.html]
#14

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 576 posts
  • Corona SDK

I'm going to start a separate issue about this - looking at your log above, the solution you came up with appears to be unrelated.

 

Do you see in your log "was killed by jetsam"???

 

Jetsam is a system that monitors memory use in OSX and iOS. It keeps a list of processes on the device, to monitor for situations where a device is running out of free RAM and look for things to kill to free up RAM.

JetSamEvents are low RAM notifications. And report processes that are likely to be killed to free RAM.

 

I have this problem after 20 minutes of someone playing my game. And we need to find out how to avoid it: https://forums.coronalabs.com/topic/62552-my-ios-game-after-20-minutes-of-play-log-was-killed-by-jetsam/




[topic_controls]
[/topic_controls]