I installed the admob sdk (version 4.11 from memory) and then added the advert to the top of my display. After a little bit of reading the instructions I managed to get the test advert displayed.
The weird thing is HMTL 5 local storage on my webView that runs the game seems to stop work - sometimes. Sometimes it is working and sometimes it is not. Take out the AdMob advert and the local storage starts to work as it should as in all the time. I have no idea how the AdMob advert could be messing around with the settings of a separate webView but it is.
Strange and googling only revealed a mailing list post someone had hit this problems and was solving it using a delay before adding the advert but no replies by anyone else. His solution also works for me so I intend to ship with the adView creation taking place a few seconds after the app is created.
It is weird and given that I could not find a place to report the bug I have posted it here particularly as the work around it not something I would have thought of trying.
So if you have a problem where local storage on a webView stops working when you add an AdMob view to your app I don't know why but there is a work around.
No comments:
Post a Comment