Wonder why firebase throws a warning saying that I've not included Firebase/Analytics while I don't need it. I'm using Firebase/Messaging though. And I know messaging is working as intended. So, how would I remove the warning that says:
<MyProjectPath>/Pods/Firebase/CoreOnly/Sources/Firebase.h:75:10: "FirebaseAnalytics.framework is not included in your target. Please add
Firebase/Analyticsto your Podfile or add FirebaseAnalytics.framework to your project to ensure Firebase Messaging works as intended."

FirebaseAnalytics to my project.Also, every time I run my project the console keeps showing me a message regarding method_swizzling_in_firebase_messaging.

OS_ACTIVITY_MODE to NO (it gives me other info that I need).Permanently deactivate collection If you need to deactivate Analytics collection permanently in a version of your app, set FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED to YES (Boolean) in your app's Info. plist file .
Firebase Cloud Messaging (FCM) provides a reliable and battery-efficient connection between your server and devices that allows you to deliver and receive messages and notifications on iOS, Android, and the web at no cost.
Firebase Cloud Messaging: Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably send messages at no cost. Using FCM, you can notify a client app that new email or other data is available to sync. You can send notification messages to drive user re-engagement and retention.
Disable the warning by defining the preprocessor define FIREBASE_ANALYTICS_SUPPRESS_WARNING in the build:

Messaging works fine without Analytics, but provides additional features when Analytics is added.
The log message is a notice and you can adjust the level of Firebase messages that print to the console with setLoggerLevel. See details here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With