lyspring / adwhirl

Automatically exported from code.google.com/p/adwhirl
0 stars 0 forks source link

Adwhirl crashes app if you click back and forth in a Navigation based app #152

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Have an adMob ad in a navigation based UIViewController and the child view 
that gets pushed into the navigation hierarchy
2.If you click back and forth repeatedyly, you will start seeing errors in the 
log "<AdMob> The AdMob SDK requires a valid view controller to be returned from 
currentViewController (AdMobDelegateProtocol).  Cancelling ad request"
3.Also, when the child view dealloc happens the app will crash randomly. 

What is the expected output? What do you see instead?
I don't want the app to crash if my viewcontroller is out of view.
Is there a way to disable ads on ViewDidDisappear() so that I can suspend ads 
for the screen which is not visibile anymore.

What version of the product are you using? On what operating system?
adwhirl SDK 5 with IOS 4.2

Please provide any additional information below.

Original issue reported on code.google.com by ashu.p...@gmail.com on 2 Dec 2010 at 1:28

GoogleCodeExporter commented 8 years ago
Can't help you but I got the same bug. This is the reason for 90% of the 
crashes... not good!

Original comment by chris95s...@googlemail.com on 13 Mar 2011 at 11:00

GoogleCodeExporter commented 8 years ago
Are you you're not leaking the AdWhirlView?  It seems like if you were 
releasing it properly, you wouldn't see these errors in your log.

Otherwise, you can try using something like [adWhirlView ignoreNewAdRequests] 
to stop requesting new ads when the view is offscreen.

Original comment by wesgood...@google.com on 30 Nov 2011 at 8:44