Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Why is RevMob complaining about some missing session? — Gideros Forum

Why is RevMob complaining about some missing session?

seppseppseppsepp Member
edited August 2014 in General questions
Hi @all,

I just noticed RevMob is telling Xcode something about a missing session. Message:

WARNING: USING ADS WITHOUT STARTING A SESSION COULD PRODUCE UNPREDICTED BEHAVIOUR!

Is this message critical?


Thanks in advance for your help.

Sebastian

Comments

  • @seppsepp do you use setKey method?
    Because that is when plugin uses key and starts the session
    You should do that before any other calls to ads, as load, show, etc.
  • Thanks for your reply, @ar2rsawseen.
    @seppsepp do you use setKey method?
    Because that is when plugin uses key and starts the session
    You should do that before any other calls to ads, as load, show, etc.
    Yes, that's exactly what I do.
      self.ad = Ads.new(self.providerId)
      self.ad:setKey(self.mediaId)
    I made sure, that providerId and mediaId are set ;) .

    Maybe this warning is responsible for some mysterious problem I have with RevMob ads. The ads, even in testing mode, don't appear from time to time.
  • In Plugins/Ads/frameworks/AdsRevmob.m

    Is there a method?
    -(void)setKey:(NSMutableArray*)parameters{
        [RevMobAds startSessionWithAppID:[parameters objectAtIndex:0]];
    }
  • Yes, there is such a method. Line 25 - 27.
  • ar2rsawseenar2rsawseen Maintainer
    Accepted Answer
    Can you put NSLog(@Setting key and starting session); there to see if it is being called properly?

    Dislikes: AlBob75

    +1 -1 (+0 / -1 )Share on Facebook
  • Gets called, I guess.
    2014-08-26 11:23:05.332 vamos[4250:60b] [RevMob] Starting RevMobAds
    2014-08-26 11:23:05.416 vamos[4250:60b] Setting key and starting session
    2014-08-26 11:23:05.417 vamos[4250:60b] [RevMob] Testing mode with ads
    2014-08-26 11:23:05.419 vamos[4250:60b] Reachability Flag Status: -R -----l- networkStatusForFlags
    2014-08-26 11:23:05.420 vamos[4250:60b] [RevMob] WARNING: SESSION NOT STARTED!! UNEXPECT BEHAVIOUR CAN OCCOUR!!
    2014-08-26 11:23:05.420 vamos[4250:60b] [RevMob] Initializating Banner.
    2014-08-26 11:23:05.421 vamos[4250:60b] [RevMob] Requesting banner data.
    2014-08-26 11:23:05.427 vamos[4250:60b] [RevMob] WARNING: USING ADS WITHOUT STARTING A SESSION COULD PRODUCE UNPREDICTED BEHAVIOUR!
    2014-08-26 11:23:05.428 vamos[4250:60b] [RevMob] Testing mode off
    2014-08-26 11:23:05.429 vamos[4250:60b] [RevMob] Parallax effect disabled
    2014-08-26 11:23:05.429 vamos[4250:60b] Setting key and starting session
    2014-08-26 11:23:05.430 vamos[4250:60b] [RevMob] Testing mode with ads
    2014-08-26 11:23:05.432 vamos[4250:60b] Reachability Flag Status: -R -----l- networkStatusForFlags
    2014-08-26 11:23:05.432 vamos[4250:60b] [RevMob] WARNING: SESSION NOT STARTED!! UNEXPECT BEHAVIOUR CAN OCCOUR!!
    2014-08-26 11:23:05.433 vamos[4250:60b] [RevMob] Initializing Fullscreen.
    2014-08-26 11:23:05.439 vamos[4250:60b] [RevMob] WARNING: USING ADS WITHOUT STARTING A SESSION COULD PRODUCE UNPREDICTED BEHAVIOUR!
Sign In or Register to comment.