Can we fetch data from firebase database of an other app? - android

I have an android app and an IOS, both connected to the Firebase database. I want to fetch the data in the ios app from the database of the android app and vice verse. Is it possible ? if yes then how? and if not, Then what will be the solution ?

You can register multiple apps in the project settings those apps can be on multiple platforms and they can communicate with your database.
So basically you need to go to Firebase Console > Settings cog > Project settings > Add an app. Adding app will allow you to share database (and other firebase features) securely across apps/platforms

Related

Flutter firebase analytics multiple projects

Is there a way to switch firebase analytics project on running flutter app?
Scenario: We have e-commerce web portals in few countries (each on subdomain). For each we have separate web firebase analytics projects.
Now we develop mobile app (one common for all countries). Inside app user can select particular shop. We want target events to proper analytics mobile project.
Any help appreciated.
There is not currently a way to use multiple Firebase apps with Firebase Analytics. This is a long-standing feature request - https://github.com/firebase/firebase-ios-sdk/issues/230.

Offline persistance with cloud firestore in Android

I am using google cloud firestore to store data. There is an option to enable offline persistance. My requirement is to have offline support & also that data should be shown after kill & launch of app.
My Queries:
Can I use only cloud firestore & have pure offline support. [Lets say user entered some data, I push it to cloud firestore & then user kills & launches the app again this time without internet, so can that data be made available directly by cloud firestore or do I need some kind of room implementation]
I have set setPersistenceEnabled as true in firestore settings. Suppose user inserts something, which I try to push it to google firebase. But that time internet is not available & then user kills the app. When user again opens the app & internet is available so will that sync be automatically made just by cloud firestore or here again I need to apply some logic & persist data using room & push to firestore manually
Link for cloud firestore offline support documentation https://firebase.google.com/docs/firestore/manage-data/enable-offline
Yes, that's how it works. Data written while offline is persistent on the device. That's why it's called "offline persistence".
Yes, that's how it works. It will retry all writes until fully synchronized.
These are things you should be able to try on your own fairly easily.

Android and iOS Firebase database data merge

I have a Android app that uses Firebase database and planning to build an iOS counter part of it. Can I use the same Firebase database of my Android app? If not, is there a way to merge the datas in the Android Firebase database and iOS Firebase database?
Can i use the same firebase database of my android app?
Yes you can. You need to go to your Firebase Console, select your project, add app and select iOS. Provide all the necessary details for the package name. Download the latest JSON file and add it to your project.
if not is there a way to merge the datas in the android firebase database and iOS firebase database?
There aren't two databases, an Android database and an iOS database. There is a single database that can be accessed by Android and iOS apps.

is possible share users between ios and android projects in firebase for the authentication

I have one application for ios and andriod but in firebase are two projects. The problem is that if an user is registered in android app using firebase, in the ios app this user does not exist. So if the user want to sigin in the ios app she/he will not be able.
If you associate the Android and iOS apps with the same Firebase project, the users will be the same between the apps.
If you associate the apps with separate projects, there is no way to automatically share the users between them.

Is firebase a server that has a mobile service

for one of my assignments I have to make an Android app and I have to use a server and a service which can be a mobile service or a web service. So I was thinking of using Firebase as it is real time and have some good features.
BUT
I want to know for the above requirements of my assignment is Firebase suitable.
Also, I have been told to submit a deployment unit, I am guessing the deployment unit in this case is the APK file. Am I right?
EDIT
In my assignment specification it says "Server deployed in the cloud and server must be micro-service or web-service or mobile-service of your choice" which made me choose Firebase. But I am confused if firebase's server is in the cloud and if it uses any of the services mentioned above :/
Yes, Firebase has great services such as Realtime Database, Analytics, Storage, Remote Config, ... which help you to build your app.
The deployment unit in Android is ".APK" file. (If you are gonna develop a library, it will be ".AAR" file (Android ARchive file))
Firebase is a cloud-based technology that permits you to make with no server-side programming. It offers features like Realtime Database, storage options, Notifications, authentication options, hosting and more and there is no server side code required. Just put in the configurations and Firebase would handle it. Firebase lets you store user information and sync data between them in realtime.

Categories

Resources