1

I use firebase_admob plugin in my flutter project and don't intend to include any other firebase related plugins like firebase_analytics, firebase_core, etc. So, my android side of the development seems very neat and all the Ads implementation is totally fine. But from the iOS side, there seem to some config steps which I'm not able to narrow down. There is no proper documentation also regarding this. Now, Correct me if my understanding is wrong. podfile is a generated one based on the pubspec.yaml file with regard to flutter ios side. And the terminal command 'pod install' installs all the dependent plugins for iOS automatically. But here is the actual problem, instead of installing only the AdMob part as a standalone plugin, the pod installs all other firebase_core, analytics, etc too, which I don't expect. I want it exactly to be similar to the android side. Because of this, I get this Google-services-info.plist is not set up and all that which I haven't done either in android with 'google-services.json'. Why should I have to forcibly include the google analytics part when I look only for Ads? Why there is no straightforward way to install only the AdMob part with the firebase_admob as in android.

And since the podfile is an auto-generated one pulling all the needed plugins from the pubspec.yaml. i'm not sure if I can add the standalone 'pod firebase_admob . and run pod update. But still not sure how this will remove the other firebase plugins. In fact, even after manually removing the dependencies from the pods.xcodeproj's target, pod update restores all the removed plugins again. How to sort this out.?

venkat
  • 53
  • 1
  • 8
  • Likely a Flutter or Flutter configuration question - the AdMob pod is independent of other Firebase pods. See https://github.com/CocoaPods/Specs/blob/master/Specs/5/9/a/Google-Mobile-Ads-SDK/7.52.0/Google-Mobile-Ads-SDK.podspec.json#L3 – Paul Beusterien Nov 11 '19 at 15:05
  • @PaulBeusterien, Yes, I'm aware of that part as google AdMob site's quick-start provides both standalone and 'AdMob with firebase' as an option to choose while implementing. But I'm using the [firebase_admob](https://pub.dev/packages/firebase_admob) flutter plugin to implement Ads as its convenient to use for both platforms. This works well for android as a standalone implementation but requires all the firebase analytics, core plugins on the iOS side alone. So, it seems to me that it's not flutter or pod related problem, but the firebase_admob plugin with flutter's setup config is the issue – venkat Nov 12 '19 at 05:37

0 Answers0