Closed katscott closed 5 years ago
Thank-you very much for your 'heads up', Kat. Something may indeed has changed, and I'll look into that when I have time. Regardless, its good to include those two links to the README file anyway as associating a 'firebase project' to your app then supplies additional app usage data and analytics capabilities to the ads.
The README file now includes those links.
TLDR: Either firebase_admob has made a recent changes that added some extra required steps in getting ads working or these were missed in the readme. Either way, it'd be good to add a note that lets others know that steps 1-3 from firebase setup instructions regarding the app configuration files are needed: https://firebase.google.com/docs/ios/setup#create-firebase-project https://firebase.google.com/docs/android/setup#create-firebase-project
Reproduction:
flutter create testapp
pubspec.yaml
and addads:
flutter run
.testapp keeps stopping
If you follow instructions for setting up firebase you can get the apps loading again.
In iOS: Steps 1-3 (https://firebase.google.com/docs/ios/setup#create-firebase-project) which address adding the missing plist, then iOS will run again with
flutter run
, but opening in xcode and trying to run there gives an build failure (before addingads
xcode could build and run fine):Editing the
[CP] Embed Pods Framework
build phase and removing theFlutter.framework
from the outputs list fixes this error (but it may cause other issues down the road).In Android: Steps 1-3 (https://firebase.google.com/docs/android/setup#create-firebase-project) have you add a json file to the app module. Adding this file allows the app to run with
flutter run
again.