Hello guys.
I finally got some time to deal with finalizing my app but I am getting some issue with Revmob and multitasking (at least I think it is related to mutlitasking) I show full screen every time the app is launched (unless the game was in progress) and after 3 games. I can see that if I suspend and then resume the game, time to time I am getting the ad which I cannot close. The only way to get out is to kill the app and restart it. When the problem happen I can still get sent to the app store if I press outside the X close button. When I am done with the app store and restart the app (not kill it just restart it) I get the ad full screen again without the possibilty of closing with the X button. This is on a real device since it seems we cannot show the full screen ad image on the simulator anymore. By the wish we could show the ad on the simulator as well since it would save a lot of time troublshooting issue with revmob. I am also traveling a lot these and have a PC laptop and no access to my mac mini to build for device…
Anyway, I will probably need to resolve this issue with suspend/resume or I will need to simply show the ad full screen every 3 games (or even make it a payed app and no ads!). This I am sure would reduce the downloads but it maybe safer for the app. Of course if I could figure what is going on then I will prefer that.
Reading the million postings here**, I was able to find these posts that seems to be related to my issues:
@Rodrigo said earlier:
I"…`m seeing this “problem” too. Looks like that the fullscreen get unresponsive after multi-tasking. When the app is “opened again - multi-task”, so the RevMob FullScreen Ads is displayed “again” and there is the problem where it (the fullscreen ads) does apear to not “go away” even more even clicking on its X…"
and
@krystian6 said:
“…I had the same problem with suspension and resume as you do.
I’m returning a reference to the ad from showFullscreen function. This allows me to manually call back() method when application is suspending.
Please keep in mind however, that this reference will stay “not nil” once ad is removed. You have to nil it on your own…”
@krystian6: What do you mean by a reference? Do you simply mean giving the call a name? A small snippet of the multitasking code would be very welcome if you (anyobdy) got a chance. Here is mine.
[lua]-- SHOW REVMOB POPUP WINDOW EVERY APP START BUT NOT THE VERY FIRST ONE!
– PLEASE NOTE THAT PLAYFLAG IS TRUE ONLY AFTER THE FIRST EVER GAME PLAYED
– GAMEON IS FALSE IF THE APP WAS SUSPENDED (EXITED) DURING AN ACTUAL GAME RUNNING. IN THAT CASE I DO NOT SHOW AN AD BUT SIMPLY A PAUSE MENU.
local onSystem = function( event )
if (event.type == “applicationStart” or event.type == “applicationResume”) and (testNetworkConnection()) == true and (playFlag == true and _GAMEON == false) then
RevMob.showFullscreen()
RevMob.printEnvironmentInformation(REVMOB_IDS)
analytics.logEvent(“APP_ADS_FULL”)
end
end
Runtime:addEventListener( “system”, onSystem )[/lua]
I am kind of surpise by this issue since it seems the posts above where posted a long time ago when the Revmob was version 1 or 2? Anybody else sees the same issue with the latest version as well (3.4.2)?
Just in case here how I use revmob:
in main.lua (top)
[lua] require “revmob”
local REVMOB_IDS = { [“iPhone OS”] = “xxxxxxxxxxxxxxxxxxxxxxxxxxx” }
RevMob.startSession(REVMOB_IDS)
– THEN I SHOW THE AD EITHER IN THE ONSYSTEM (ABOVE) OR IN MY GAMESCREEN.LUA – EVERY 3 GAMES.[/lua]
Finally I am wondering if the revmob listener would help here. Even if you won’t help here, I will love to know how to use it anyway. For instance many times the ad shows up later than the main menu so the player could easily start a new game and the ad showing up during the game play. If that happen then the game is running behind the ad. Of course the people can simply press the exit button on the ad but I will rather that won’t happen since it is annoying (the player can lose a lot of points since this a fast space shooter game!) Would a revmob listener help in this situation? How? Again depending on the type of network speed (wifi or 3G) the ad full screen can show up after bunch of seconds and that seems to cause issues if the player press play before the ad is shown.
I am very sorry for al these questions. I just started to really deal with Revmob integration and I can see multiple things I need to fix before releasing my which is basically ready for launch:)
Thanks guys.
Mo
** PLEASE CORONALABS, GIVES REVMOB THEIR OWN FORUM PLACE!
-
People won’t have to choose between asking the same questions again and again or read thru 1000 posts!
-
It will make it easier to find issues/solutions
ps: @Revmob: I sent you some info on the memory profile. I am still working on figuring out that issue as well. [import]uid: 100814 topic_id: 25797 reply_id: 127398[/import]