I'm trying to run firebase_messaging only on android and ios device, however if i put the firebase_messaging inside pubspec.yaml, and then run my flutter web it return
TypeError: Cannot read properties of undefined (reading 'messaging')
at new firebase_messaging_web.FirebaseMessagingWeb.new
And in order to run the flutter web, i must initialiseApp the firebase on web. Is there any way to run firebase_messaging only on android and ios
Related
Google recently released Flutter 3.
And at the same time, Flutter projects are now supported in the Firebase console as well. However, in the past, it was possible to register and use each Flutter project in Android IOS. What's better? I am thinking of changing
Edit: This question refers to Flutter apps.
When adding Firebase to my Android app, the instructions say: "Finally, press "Sync now" in the bar that appears in the IDE"
However, no bar appears in Android Studio.
It seems that there used to be a button in the tool bar: Where is a "Sync project with gradle files" button in Android Studio 3?
And that more recently it could be found at "File > Sync Project with Gradle Files": Syncing Android Studio project with Gradle files
But neither of those options exist in Android Studio as of April 4, 2020. The closest thing I can find is an item in the dropdown menu that says "Sync with File System."
I thought maybe it was the same thing, but they are not:
What is the difference between Sync project with gradle files and Sync with File System?
Any ideas how I can sync project with gradle files in Android Studio in April 2020?
Thank you!
According to your picture, it looks like you are using flutter and not native android development. If you want to add firebase analytics to your flutter app then you need to go to the pubspec.yaml file, and you can add the dependency:
dependencies:
firebase_analytics: ^5.0.11
After adding it a top bar will appear to that will automatically execute pub get
https://pub.dev/packages/firebase_analytics#-installing-tab-
what I do is open the android folder of our Flutter project as a new project,
** Archivo> Abrir> Proyect-android **
in this way the IDE recognizes it, and enables the Gradle synchronization button ( only enabled in native android projects)
Image Example
once synced, you can close the native Android project, and it would be synced to your Flutter project
we are trying to integrate Crashlytics in Xamarin.Forms iOS, we tried using the Xamarin.Firebase.iOS.Crashlytics, But we don't have any type of documentation related to this integrated
while we integrate and add references then we are getting this error
/Users/apple/.nuget/packages/xamarin.firebase.ios.crashlytics/3.10.9/build/Xamarin.Firebase.iOS.Crashlytics.targets(3,3): Error MSB3073: The command "'/Users/apple/Library/Caches/XamarinBuildDownload/Fbrc-1.7.13/upload-symbols' -gsp '/Users/apple/Desktop/Xamarin-Forms/Sympl/Latest/sympl-mobile-app/App.iOS/GoogleService-Info.plist' -p ios 'bin/iPhone/Debug/device-builds/iphone9.4-12.0/App.iOS.app.dSYM'" exited with code 132. (MSB3073)
For using that Package Fabric is mandatory ? with out fabric we were not able to use just firebase Crashlytics ?
I'm having a little problem. When I try to deploy an unity3d app with the auth sample project from firebase I'm getting this error "error building Player: iOS framework addition failed due to a CocoaPods installation failure" but I have installed cocoapods correctly, I even uninstalled it and reinstalled it. I only get this error with the auth project, not with the database. I tried adding the cocoapods to the project with the terminal using pod init instead of having unity do it but nothing seems to work
From https://github.com/firebase/firebase-ios-sdk/issues/1845#issuecomment-425184012:
We're working on patching the Firebase C++ and Unity releases to migrate them to the 5.9.0 iOS SDK. In the meantime, under Assets/Firebase/Editor/ there are a set of files matching *Dependencies.xml files (e.g AnalyticsDependencies.xml) that reference the iOS SDK version. You'll need to modify the section of each file to reference iOS SDK 5.9.0 rather than 5.6.0.
More details at https://github.com/firebase/firebase-ios-sdk/issues/1845#issuecomment-425184012
Im using the android part of FCM unity SDK for my game, and a standard APNs integrate for iOS platform.
So I want disable the iOS part of FCM unity sdk completely, I removed all the plugins in iOS folder, disabled cocoapod settings, but still got this error
No GoogleService-Info.plist files found in your project.
Finally I just follow the SDK guide download a GoogleService-Info.plist file from firebase console, mute the build error.
I think this is the only way to disable the iOS part currently.