Extension-admob, runOnUiThread locks app


#1

To initialize admob it calls “mainActivity.runOnUiThread”, which blocks the UI for too long, resulting in ANRs in the android-console.

Is there a way to run it in a background thread?


#2

If it doesn’t talk to Haxe, probably! If it does talk to Haxe, you will want it to run on the render thread


#3

Not sure if i understand the “If it doesn’t talk to Haxe” part, but i dont think it does.
The extension just delegates the calls to java/admob.
There is a callback, but not directly linked to the runOnUiThread part.