Cordova CLI, Admob and Google Maps plugins conflict

后端 未结 2 1832
误落风尘
误落风尘 2021-01-26 17:31

i have trouble with admob and google maps plugins. When the ads appear, my maps blank. i think they both conflict. But i dont know how to solve it? Anyone?

相关标签:
2条回答
  • 2021-01-26 18:09

    Check out this link. This issue is raised by the author of cordova-plugin-admob himself

    0 讨论(0)
  • 2021-01-26 18:16

    Nothings is conflicting as I believe you are using google-phonegap-maps plugin and admob-pro. Google-phonegap-map plugins needs to be tweaked when your working with any other framework. As it is running on Native View. If you put Background color to any DOM element It may reflect on your Map. Admob banner I guess applies some background (I couldn't exactly fetch out in what manner), But It does. So the work around I have came up with is to Overlap your banner and it will be solved.

    admob.createBanner({
               /*parameter stuff, set one more parameter*/
                overlap : true,
    })
    

    and it will be done. I guess you have already acknowledged on facebook.

    0 讨论(0)
提交回复
热议问题