ti.admob
ti.admob copied to clipboard
[MOD-2479] Android: Interstitial Ads not working with background thread
JIRA: https://jira.appcelerator.org/browse/MOD-2479
Description: Make sure to always load and show Interstitial ads from the main thread. We can pun this together in a release with https://github.com/appcelerator-modules/ti.admob/pull/83, but if we decide to separate it I will update the version in this PR too.
Test case:
The sample in the module is good enough to test this. Run it with different values of run-on-main-thread
property in the application's tiapp.xml file.
FYI: Titanium 8.0.0 will only support running JavaScript on the main UI thread. The run-on-main-thread
property will be ignored and hard-coded to true
internally.
How to disable android back button when Interstitial ads shown?