Onsuspend() and Admob

Monkey Targets Forums/Android/Onsuspend() and Admob

silentshark(Posted 2012) [#1]
Hi guys,

I've put the following code into Onsuspend(), because it appeared that Admob was still busy serving up ads to my app when it was suspended

Method OnSuspend()
' if user suspends, we will quit (appeared to be still pulling down some ads when suspended?!)
		#If TARGET="android" 
			Error ""
		#End
End Method


I am not sure this is a great thing to do.

Am I better off leaving the OS to deal with this kind of thing (even if it means the app gets served up a few ads when it's suspended, before it gets swapped out)?


golomp(Posted 2012) [#2]
Good idea, i did'nt know it was available.
Thanks


silentshark(Posted 2012) [#3]
Not sure if this is a great idea. For now, I'm just sticking with default behaviour, but it seems non-optimal for ads to be served up to swapped-out apps!