EMI-INDO / emi-indo-cordova-plugin-admob

Cordova Plugin Admob Android | IOS
ISC License
12 stars 2 forks source link

Banner is moving with screen content #6

Closed carlobs closed 1 year ago

carlobs commented 1 year ago

The banner at the bottom of the app is floating with the content (also the non adaptive banner), not loacked ad the bottom of the screen, my app developed with Jquery-mobile need the banner below the frame, it's possible to solve this issues? Thank's

EMI-INDO commented 1 year ago

@carlobs

There's not much I can do about your problem, try

cordova platform rm android
cordova plugin rm emi-indo-cordova-plugin-admob 

try adding a plugin with the url

cordova plugin add https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob --variable APP_ID_ANDROID=ca-app-pub-3940256099942544~3347511713 
cordova platform add android
cordova prepare

code

let showBanneAd = () => {
    cordova.plugins.emiAdmobPlugin.showBannerAd(
    bannerAdUnitId = "ca-app-pub-3940256099942544/6300978111", // index 0
    npa = "1", //  index 1
    position = "bottom-center", // index 2
    size = "default", // "default" or "FLUID" index 3

    (seccess) => { console.log("success") },
    (error) => { alert(error)

    });
}

// call  showBanneAd();
carlobs commented 1 year ago

Hi, thnak's for your reply, i reinstalled the plugin, now 0.0.7 version, with the suggestion code nothing change.

My old used plugin is not maintained now, but it worked fine (https://github.com/floatinghotpot/cordova-admob-pro) for many yaers, now i'm searching for a new one.

Below two screenshot with your banners inside the content off the app, also over the toolbar.

first screenshot:

Screenshot_20230419_173619_Gravidanza Mia - Free

second screenshot:

Screenshot_20230419_173627_Gravidanza Mia - Free

EMI-INDO commented 1 year ago

Hi, thnak's for your reply, i reinstalled the plugin, now 0.0.7 version, with the suggestion code nothing change.

My old used plugin is not maintained now, but it worked fine (https://github.com/floatinghotpot/cordova-admob-pro) for many yaers, now i'm searching for a new one.

Below two screenshot with your banners inside the content off the app, also over the toolbar.

first screenshot:

Screenshot_20230419_173619_Gravidanza Mia - Free

second screenshot:

Screenshot_20230419_173627_Gravidanza Mia - Free

For now, there is no time to fix your problem, maybe next month I will try to fix it.

I emphasize do not use the plugin https://github.com/floatinghotpot/cordova-admob-pro you will lose 30% of your income.

EMI-INDO commented 1 year ago

@carlobs

This should not be a problem for me.

1 Choose which banner size is most suitable for your application. 2 When the banner ad is displayed, you must shift the position of the object covered by the ad, when the banner ad is not displayed you just return the position of the object to the initial position.

carlobs commented 1 year ago

Hi Emi-Indo The Jquery mobile framework not allow to modify the core code without a lot of general impact. I look forward to your future updates. Thank you.