[MOD-2507] ti.admob - Android 9 support?
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Admob |
Labels | n/a |
Reporter | Jason Kotchoff |
Assignee | Yordan Banev |
Created | 2019-03-27T00:25:38.000+0000 |
Updated | 2019-04-10T17:27:15.000+0000 |
Description
The ti.admob module crashes on Android 9. We have had to completely disable it for this operating system version.
It's an issue on Google's end because the AdMob library is still using the deprecate Apache library which has been removed as of Android 9. Please see: https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/K1HKru7RutY The work-around is to add the below
<uses-library/>
to your "tiapp.xml". This is Google's recommendation as well.Note that this is an issue with Google Maps as well if you use it.
In order for this module to be compatible with the latest firebase modules for Ti SDK 8.0.0 to run on Android 9, it needs to also compile and run alongside ti.playservices v16.1.2. This ti.admob module won't compile on ti.playservices v16.1.2 as it errors out with:
Can this be fixed?
Currently a ti.admob rewrite is in progress for both iOS & Android to support more ad types and make them properly cross platform. [~ybanev] is working on that. I've assigned him to make sure it will work as well on Android 9