I'm working on a Flutter app, compiled in both web AND mobile version. Everything worked like a charm until I decided to use Firebase.
I found that there are many libs that allow to use Firebase in Flutter, for mobile apps. I also found a lib that allows to use Firebase in Flutter web app.
The problem is: Firebase plugin for web version is using "dart:html", which isn't supported for mobile versions of Flutter apps. On the other side, mobile libs aren't supported by web versions and I always get a PlatformException when using them in web app.
So here is my question: Does anyone know a Flutter's Firebase lib, that works on BOTH mobile AND web versions, so that I only have to compile in the platform I want, without having to change the code before?
EDIT:
I know there is a way to write specific code for Android or iOS version, but I can't find any clue for writing specific code for the web version. This should be another way to solve the problem...
Any idea?
At the moment there is no single Flutter+Firebase library that works for both web and mobile apps, so you will need to use two (incompatible) libraries.
Work is being done to rectify that situation, but there's no timeline for its release.
Also see:
this Github issue on compatibility
How to use cloud_firestore in flutter for web and android?
What firebase plugins are you using?? As there are only limited firebase plugins avalaible to use on web which includes firebase_analytics firebase_auth cloud_firestore cloud_functions firebase_messaging firebase_storage firebase_core
if you are using any firebase plugin other than these then they are not supported for web
Related
Steps to set up a new Analytics link
Integration source
we followed above mentioned steps successfully for android app build using cordova but not able to reach 5th step.Am I missing something here? Suggest any other approach to track mobile app activity using google analytics4 property.
we used cordova to build mobile android app.
Above steps maybe for native mobile app only or in case of cordova based build will need plugin to support integration of google analytics.Any leads appreciated .Thanks
I do not use xcode but Delphi development tool, and I would like to know where I can download the dynamic version of the firebase frameworks. as far as I understand the version under https://github.com/firebase/firebase-ios-sdk/releases are only the static framework right ?
Beginning with CocoaPods 1.9.0 and Firebase 7, you can choose whether your Firebase dependencies are built as static or dynamic frameworks. recommendation is using static frameworks unless you require certain dynamic library behaviors.
Using Firebase SDKs from dynamic framework conclusion:
Firebase may be used from an embedded dynamic framework in your project (e.g. for the code reuse purposes) only when Firebase is not used from the app directly.
Firebase SDKs should never be used from vendor dynamic frameworks because the version of Firebase compiled into the dynamic framework will early or later conflict with the customer Firebase version.
Check the helpful official documentation for Android related dynamic feature modules and Android play services required recommendations.
I need to develop a mobile application for iOS and Android with Chat and VOIP calling functionalities. One of the tools identified by client for Chat and VOIP is QuickBlox (https://quickblox.com/).
QuickBlox provide Native Plugins for iOS and Android with APIs for Authentication, Users, AddressBoox, Chat, Video Calling, Content, Push Notifications.
I've been using Google Flutter in the past 6 months to develop apps, and I could have used Google Flutter and Google Firebase to achieve all of the client requirements except for VOIP calls.
Should I build a Flutter Plugin as a wrapper for the native plugins or should I develop Native apps with 2 code bases for iOS and Android.
I have not built Flutter Plugins previously, will I save time by going Flutter + Flutter Plugin for QuickBlox?
Thank you.
https://quickblox.com/
https://quickblox.com/developers/QuickBlox_Developers
QuickBlox has recently released an SDK for Flutter, documentation is available here. There is also a step-by-step guide on launching QuickBlox Flutter SDK.
Recently I came across similar requirements. We had tried to go with the flutter plugin approach using Flutter Method Channel. It acts as the bridge between the native side of the app and the flutter codebase. You can have a gist over the demo project which provides chat listing for now Demo.
Has anyone managed to extend "Mobile Backend Starter Java" on Android Studio
https://github.com/GoogleCloudPlatform/solutions-mobile-backend-starter-java
Frustratingly any documentation that exists seems out of date or only for Eclipse".
I want to use Gradle and not Maven , Android Studio and not Eclipse
I followed the Tutorial
https://developers.google.com/cloud/samples/mbs/
but the extend page left me confused
https://developers.google.com/cloud/samples/mbs/extend_backend
I would like to know if anyone has tried this
I thought about going from the other direction creating an app and then Google Cloud Tools and App Engine Backend with Google Cloud Messaging but I do not see a deploy , I did see this, Deploy Google App Engine backend from Android Studio
but have not tried yet
There is a project on GitHub which you can use as module. It provides you with the basic client libraries. You can use it as starting point. See https://github.com/thagikura/mobile-backend-starter-android-client-with-AndroidStudio and follow the instructions there.
This is my first post in StackOverflow.
I am building an android app using Android Studio. This app requires some cloud backend to sync user data across devices. After some research, I came across the Mobile Backend Starter from google which provides a fully deployed app engine backend and a client android application.
The problem is that every video/tutorial out there is using Eclipse to open this client application. When you try to import it to Android Studio, you get an Assertion:Null error.
Another step I tried is that, I opened it in Eclipse, followed google documentation to set
And then tried to import to Android Studio. This time I got an error that the "The filename, directory name, or volume label syntax is incorrect"
Can someone help me out with this? Is it also possible to use the "Generate Mobile Backend" option in android studio? But wouldnt this mean that we cannot leverage the client libraries provided in Mobile Backend Starter?
Edit (to add more details to the question):
If I use the "Tools > Google Cloud Tools > Generate App Engine Backend" method, will I be able to get all the boiler plate code in the Mobile Backend android client?
Also, I tried today to Generate App Engine Backend and point to my existing Mobile Backend Starter app engine project. But this did not bring in end point connections for mobilebackend api. Am I missing something here?
Yes there is an option in Android Studio also for Generating App Engine Backend.
Tools > Google Cloud Tools > Generate App Engine Backend
Here is a nice tutorial on Android Blog for the same
http://android-developers.blogspot.in/2013/06/adding-backend-to-your-app-in-android.html
But look in to this post before doing this as Google App Engine Back-end still uses maven so you need to install that before using it.
Maven needed when generating Google App Engine backend in Android Studio
This is an old question but for those that come to this now the easiest way to get started is with this unofficial build for android studio. Why couldn't google do this themselves?
https://github.com/thagikura/mobile-backend-starter-android-client-with-AndroidStudio