bdlukaa / native_admob_flutter

Easy-to-make native ads in flutter using AdMOB SDK.
https://pub.dev/packages/native_admob_flutter
BSD 3-Clause "New" or "Revised" License
80 stars 56 forks source link

Cannot find 'kGADAdSizeBanner' in scope #133

Closed erperejildo closed 2 years ago

erperejildo commented 2 years ago

I'm getting this issue that stops me from compiling on iOS. Using 1.5.0.

Android is fine

wph144 commented 2 years ago

same issue

yusriltakeuchi commented 2 years ago

Same issue

ahde46 commented 2 years ago

same issue here

erperejildo commented 2 years ago

@bdlukaa any update about this?

yusriltakeuchi commented 2 years ago

Maybe someone can fix this issue and put into new git repository. I think the author is really busy...

erperejildo commented 2 years ago

Maybe someone can fix this issue and put into new git repository. I think the author is really busy...

maybe this comment helps?

https://stackoverflow.com/a/71035981/4858133

erperejildo commented 2 years ago

Maybe someone can fix this issue and put into new git repository. I think the author is really busy...

This is blocking my iOS update. Don't mind to hear that but at least something just to know I can wait or not

bdlukaa commented 2 years ago

Hello! Please, see #58. I don't have a mac neither an iphone to give you support. All the ios support come from the community

erperejildo commented 2 years ago

We really need to have support for both platforms since Flutter users are facing many problems related to showing ads.

I asked the question there but not having a iOS support is a really a negative point IMO when the opportunity to make this package more standard is perfect now:

yusriltakeuchi commented 2 years ago

@erperejildo hey bro, maybe you can try this solution, it's work for me. But i hope the author will updating this issue.

In native_admob_flutter/ios/Classes/Banner/BannerAdView.swift line 9: try change from:

private var adSize: GADAdSize = kGADAdSizeBanner

to :

private var adSize: GADAdSize = GADAdSizeFromCGSize(CGSize(width: 320, height: 100))

This is just create a default adSize when you're not inserting custom size. The condition can be found in line 38

erperejildo commented 2 years ago

thanks for that @yusriltakeuchi. I see that it's merged already

erperejildo commented 2 years ago

@bdlukaa I see you closed this but any plans to release this soon? I get this error with above fix: 'FLTGoogleMobileAdsPlugin.h' file not found on #import "FLTGoogleMobileAdsPlugin.h"

When I try to update pods and everything the package removes the manual change

felixgabler commented 2 years ago

Hi, my app release is also blocked because of this issue. Could you please release another update? 🙏

bdlukaa commented 2 years ago

You can use the master branch as your dependencies:

dependencies:
  native_admob_flutter:
    git: https://github.com/bdlukaa/native_admob_flutter.git
erperejildo commented 2 years ago

You can use the master branch as your dependencies:

dependencies:
  native_admob_flutter:
    git: https://github.com/bdlukaa/native_admob_flutter.git

why not releasing a new version?

naamapps commented 2 years ago

Facing this issue too. @bdlukaa please deploy to pub.dev. Using the git dependency is not the best practice.

erperejildo commented 2 years ago

can we open this issue again until it is deployed please?