In iOS I have had this problem, in Android is fine. I use the latest version of Ads Interface, the problem is when no Internet connection and seems trying to connect in every frame. Is working with a very stuck performance. When he returns internet also seems to be trying to connect in every frame and slows.
I have read this thread but is a little older:
http://giderosmobile.com/forum/discussion/5029/ads-interface-issue-problem-when-no-internet-connection/p1What is the solution for this problem?Also works for ios8?
@ar2rsawseen, you know anything about this please?
Thanks
Comments
have Reachability included, which checks if there is internet connection before initiating ads, so it should have been solved. Unfortunately don't have ios8 to test it there
Automatic.
If you run it on XCode, you can see "reachability bla-bla-bla" at the log. That is when it fired.
I think i have a problem like that before. I just reset the device to solve the problem. I'm not sure why.
Without Ads the game is fine but when he returns internet also seems to be trying to connect in every frame and slows.
I just reset the device, but always returns to the same problem.
Without internet, infinite repeat:
2015-01-27 14:20:46.934 appname[3086:607] Reachability Flag Status: -R tc----- networkStatusForFlags
[gideros] starting render thread.
2015/01/27 14:20:54 ad request failed: network is not available
2015/01/27 14:20:54 ad request failed: network is not available
2015/01/27 14:20:54 ad request failed: network is not available
2015/01/27 14:20:54 ad request failed: network is not available
...
With internet y later disabling internet, the game is slows or crash, i see this infinite repeat:
2015-01-27 14:10:38.451 appname[2941:607] Reachability Flag Status: -R -----l- networkStatusForFlags
2015-01-27 14:10:38.451 appname[2941:607] Reachability Flag Status: -R -----l- networkStatusForFlags
2015-01-27 14:10:38.451 appname[2941:607] Reachability Flag Status: -R -----l- networkStatusForFlags
....
With internet, passing between levels or returning to home screen, the game is very slows, i see this infinite repeat:
2015-01-27 15:01:45.039 appname[3389:607] Reachability Flag Status: -R -----l- networkStatusForFlags
2015-01-27 15:01:45.039 appname[3389:607] Reachability Flag Status: -R -----l- networkStatusForFlags
2015-01-27 15:01:45.039 appname[3389:607] Reachability Flag Status: -R -----l- networkStatusForFlags
...
What Ads network did you use?
(Admob/Chartboost/RevMob/others)
Did you call adshow on event ad failed?
I use this code to make calls on event ad failed:
It would be better to give :
So just try remove every Event.Ad_xxxx, and call showAd.
If the problem goes away, then there must be a loop around your code.
Edit: oh boy, and now i realized.
Did you really add Event listener inside add Event listener like that?
add Event Listener should be written on initialize/preparation once, and not after the function call.
This code works perfectly on Android. In iOS fail.
I've tried adding Event Listener on initialize and does not solve the problem. I use scene manager and the problem occurs in the pause button or by passing between scenes.
https://deluxepixel.com
Here there is no code when it fails. Any reason?
admob:addEventListener(Event.AD_FAILED,function(e)
print("admob AD_FAILED",e.error)
end)
You use it for both interstitial and banner? Or separately?
Maybe separately:
function tryAdvertBanner() and function tryAdvertInterstitial()
Thanks again!
Nobody likes them, I doubt if they ever get clicked.
https://deluxepixel.com
I have this at the beginnning of my code:
I also set up other skinning parameters in this file, depending on the game, eg - a Christmas game, an Easter game - they would use the same engine (main.lua) but different custom.lua files and graphics.
https://deluxepixel.com
https://deluxepixel.com
http://giderosmobile.com/forum/discussion/3456/ads-interface/p8
or provide separately for each ad, as this key is actually ad dependent (meaning would be different for banner and interstitial)
Likes: SinisterSoft
https://deluxepixel.com