Open jgberg opened 9 years ago
if fail loading the ad, is the event 'onAdFailLoad' fired?
I think I'm catching all events, but I can check in the morning. It's late for me. Can you confirm the api works properly when your test app is started with the network disabled and then see what happens when you enable the network at a later point? Playing with the test app while the network is going up and down would be informative....
On Wednesday, December 10, 2014, Raymond Xie notifications@github.com wrote:
if fail loading the ad, is the event 'onAdFailLoad' fired?
— Reply to this email directly or view it on GitHub https://github.com/floatinghotpot/cordova-mobfox-pro/issues/14#issuecomment-66583409 .
Ok. I've checked and I'm catching all documented events, but that is not a document event... I'll try it... but you may need to improve the documentation if its for real...
Ok... I've tested this with the network off and listening for 'onAdFailLoad'. And I get this data with it: {"adNetwork":"MobFox","adType":"interstitial","adEvent":"onAdFailLoad","error":0,"reason":"Error parsing xml response from server"} which is good.
But then, if I turn the network back on, i get this event whenever prepareInterstitial() is called... which should not happen.
We have found that if the network is down (like an iPad is not on wifi) and we request an ad through prepareInterstitial api, that we don't get an error or error event in this case. It is essential for us to know that the api call has failed in this case.