Questions tagged [firebase]

Firebase is a serverless platform for unified development of applications for mobile devices and for the Web. It uses the NO-SQL structure as opposed to RDBMS.

0
votes
0answers
7 views

Android Notification Channel Description

Public method setDescription of the NotificationChannel class suppose to set the user visible description of this channel. public void setDescription (String description) Could anyone help me find ...
0
votes
0answers
15 views

Firebase datadescription returns empty array

I'm trying to Grab all Fields as dictionary from 1 document. But when I try to do it i just get returned with empty array. I tried getting help from documentation and it's not working. tho this line ...
0
votes
0answers
6 views

Firestore how to ensure path with nested subcollections?

The structure of my stored data is as follows: /forums/{forum}/posts/{post} I want the posts/{post} part to be recursive, meaning that any of the following should be valid: /forums/{forum}/posts/{...
0
votes
0answers
5 views

Firebase realtime database write rules

I have a question about the firebase realtime database rules. Somebody creates an account and that account creates a path in the realtime database: The structure is simple (key, userid, other data). ...
0
votes
1answer
9 views

Firestore: Access documents in collection user has permission to

I have a collection called announcements that I'm using to store data. However each document has a field called "permissions" that contains a permission level string. I wrote function to determine if ...
0
votes
0answers
6 views

How to update firestore data when scrolling a ListView in flutter?

I have a horizontal ListView in my flutter app, it loads data from Firebase Cloud Firestore. Each item has its own unique id. What I want to do is when the user scrolls, I want to update a Firestore ...
0
votes
2answers
27 views

Why does cloud functions return ‘Optional()’ with the value

I have a function to check wether an email is in use or not, here’s the code for the function: import * as functions from 'firebase-functions' import * as admin from 'firebase-admin' admin....
0
votes
1answer
25 views

app's CRUSHING when I click 'SAVE'… any ideas?

i have a memories write app and in that app you can create memories that contain title, body, pic and date (there is a countdown til the date). it was working fine until i added those date-relate code ...
0
votes
0answers
13 views

Firebase / Ionic 3 - Autentication - change Default initializeApp.initialize

I need to change the default initializeApp to other firebaseConfig parameters. Ex: When entering the application, one must log in with the settings: const firebaseConfig1 = { apiKey: "xxx", ...
0
votes
0answers
22 views

How can I make a tree structure in Android Studio? [on hold]

I'm not specialized in Android Studio, I'm a begginer, and I have to make a decision reading and writing app, but now I'm centralized in writing. I'm using a fireabse database, so I want to know how ...
0
votes
0answers
6 views

Working with Azure notification hub using IONIC 3

We are currently using azure notification hub which allows us to work with both APN and GCM/FCM. Push notification functionality works properly with our current native apps (both android and iOS). ...
0
votes
0answers
10 views

android : firebase authentication ; google login ; unknown source ,12500 error [duplicate]

Im trying to use Firebase Authentication Google login. I have looked up other posts but I am sure my sha-1 got right. Its not for google play store but just for practice project. And the error W/...
0
votes
1answer
28 views

Firebase Facebook Login - Detect User login status and redirect

I'm trying to create a login page for an app that uses the Facebook Login SDK. When the RootViewController loads, it should determine if the user has already logged in via Facebook and if so, direct ...
0
votes
3answers
61 views

How to get all true values

I have a Firebase structure like this: "userObjects" : { "fP8g5kxrjnBhYTiUxjF6Pdc5xfgP" : { "objectsInLists" : { "603648351" : { "Top" : true }, ...
0
votes
1answer
10 views

Handling preferences with multiple FCM topics

In one PreferenceFragment I have one category that holds around 10 preferences - these are topics that are either set to true or false. Right now, when this PreferenceFragment enters onPause() I ...
0
votes
0answers
18 views

Get a correct list from GeoQuery use GeoFirestore for Android

I use GeoFirestore for Android. A code: CollectionReference geoFirestoreRef = FirebaseFirestore.getInstance().collection(ARG_USERS); GeoFirestore geoFirestore = new GeoFirestore(geoFirestoreRef); ...
0
votes
0answers
14 views

How do I get the data which didn't changed from firebase realtime database?

I can't get the data which is not moved. How can I get the data? I can get only moved, changed, deleted data through ValueEventListener or addValueEventListener. And DataBaseReferences has getKey() ...
0
votes
0answers
26 views

Glide listener getting called when it shouldn't be

I have an app which uses Firebase. When a user logs in, an activity will check if user data is present in the Firestore database and get them to the app if it is present. This is the code for that (...
6
votes
0answers
48 views

Correct way to update multiple documents inside a transaction

TL;DR Should I use Transaction.getAll() or use a for loop and update the documents one by one using Transaction.get() consider the following schema: - someTopLevelCollection - accountId1 - ...
0
votes
0answers
10 views

Custom authentication in Unity with Firebase

I want to make a mobile application in Unity using Firebase. Instead of email/password login I want to make nickname/password authentication (e.g. custom auth). Could somebody please explain to me (in ...
0
votes
1answer
14 views

Filling Firestore document with data programmatically

I already have some lists of data stored on my computer, and I want to upload them to my firestore database programmatically, without having to enter them one by one. Have already seen some articles ...
0
votes
0answers
4 views

Why there is a delay in delivering firebase-In-App messages? Sometimes I need to re-install the app

I have integrated In-app messaging for my android app. But the time it takes to show the message is not consistent. Sometimes I will have to wait for a day before get to see the In-app message and ...
0
votes
1answer
8 views

firebase.firestore.FieldValue.serverTimestamp() creates a “modified” snapshot entry while I am trying to insert it

Sorry , I am not aware that ,is this a issue, or I am not able to use it in the correct manner, The problem I am facing is .. I am trying to create a new document , with certain fields , with one ...
2
votes
0answers
31 views

How to write security rules for firebase firestore when request data and in case where we have not used firebase authentication?

I have used Firebase Firestore for database storage. I had a scenario in which i need to manage users login and logout using phone number and OTP. and as Firebase authentication manages authentication ...
0
votes
0answers
12 views

Creating chatapp using FirebaseRecyclerPagination

I'am trying to create a chat app using Firebase as database. I want to implement FirebaseRecyclerPagination because I don't want to load all the chat right away I want it to load by a certain number ...
0
votes
1answer
28 views

How can I get the params from a “get request” in a firebase function?

I know the request param in a firebase https.onRequest corresponds to a Express response. I want to run the cloud function using this format (local testing): http://localhost:5000/test-2c6e8/us-...
0
votes
1answer
19 views

How to generate a firebase download token

How do we go about generating a firebase download token within the admin SDK, knowing it can easily be done with the client SDK. I understand the client SDK acts as a wrapper on the storage SDK, ...
1
vote
1answer
14 views

stuck with firebase_token.java

I have an errors with firebase_token.java error: cannot find symbol variable super error: cannot find symbol class FirebaseInstanceIdService error: method does not override or implement a ...
-2
votes
1answer
35 views

Change the package name for the app published in Google play store

I have launched my first app yesterday. Later I realized that package name looks weird from its application, how can I change it? It involves Firebase real-time database with authentication support. ...
0
votes
1answer
14 views

How to write Swift Codable struct with Date property to Firestore

I fairly new to Firebase/Firestore and currently writing an iOS/Swift app to both write/read a Customer struct to the DB. The Customer has a validTill of type Date. At the moment, I can't seem to be ...
0
votes
0answers
21 views

Call Firebase cloud function via GET and return parameters

I have created this cloud function: exports.returnUid = functions.https.onRequest(async(req, res) => { const uid = req.query.uid res.send(uid) }); When I call https://<project>....
0
votes
0answers
11 views

Not getting OTP when I used FirebaseAuth for Verification

private ImageView back, logo; private EditText orgname, urname, desig, email, phnmb; private TextView goback; private Button creacc; private Organization org; private String organame, yourname, desg, ...
0
votes
0answers
18 views

React native app firebase.auth() not a function

I have a react native app on development that uses a firebase authentication. it was working fine until yesterday. I used the following command to build the app yesterday react-native bundle --...
0
votes
0answers
15 views

How to create a Firestore safe Document ID based on a string

After some discussion on my question about base64 not being safe for Firestore IDs here I would like to know how one can encode a string to a Firestore "safe" Document ID. Here is the problem: I ...
1
vote
3answers
40 views

I am trying to open Dialog but I keep on getting compilation error of `Builder (android.content.Context) in Builder cannot be applied to the Activity

The following code shows RecyclerView Class and underlying activity is Tab layout. Right now the way code is I am getting an error where I declare the AlertDialog the error says Builder cannot be ...
0
votes
3answers
29 views

How can I get my list component to render after the state has changed?

I have a calculator app which logs the ten most recent equations processed by any user in real time via firebase. It is supposed to automatically update the log any time someone from any device ...
0
votes
0answers
20 views

How can I send an FCM message to another APP?

How can I send an FCM message to another APP? I have been trying for a few days to get a message for a chat app. It worked in the old version of Firebase (17). Now Firebase has removed old features ...
0
votes
0answers
25 views

How to save data in a tree structure to firebase database

I have a set of nested 'ul' elements inside a div. Can someone kindly suggest a way to save this to the firebase database.Every has a id and is created on button click. <div> &...
0
votes
1answer
23 views

How can i upload the assets bundle on Firebase server? google provides server to upload asset bundles that can used for android / IOS platform games?

I have generated asset bundle from unity and i am trying to upload it to google server, most probably i am expecting firebase provides such services. I am trying from last two days but i didn't found ...
0
votes
0answers
34 views

After my if statement nothing happened. Else is being ignored

What its supposed to do is after getting ProgramTracker size it checks if there is still an unfinished exercise inside ProgramTracker and if it detects an unfinished exercise it changes the ...
0
votes
0answers
17 views

Release apk wont open w/ firebase installed in react native

I started creating apk file w/ command "./gradlew assembleRelease" But when i install the apk on the android phone, the app install failed and it won't open. Upon investigating the logs and ...
0
votes
0answers
10 views

“ Cloud Firestore Override a deprecated API ” Error occurs when build the flutter application

" Cloud Firestore Override a deprecated API " Error occurs when building the flutter application. Note: C:\Work\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.11.0+2\android\src\main\...
0
votes
1answer
30 views

How to get response from firebase function to firebase static index.html

I am try to getting my firebase database response in firebase static file of index.html. In firebase index.js, am getting database and returning the all ref by getUsers method then get response ...
0
votes
0answers
15 views

Recommendation needed on filtering, pagination, and ordering data from firebase

Context I'm currently working on a personal project consisting of a ReactJS website that shows a list tutors that can be filtered in various ways by interacting with different components. I made a ...
0
votes
0answers
34 views

List is not binding properly, getting list null

I have a problem regarding list binding in the web app with firebase and angular7. The problem is as follows: 1-> I want to get list of users for and I am getting them and I am pushing them into a ...
0
votes
1answer
13 views

Firebase Auth JWT IDToken: is server side verification always needed?

I'm using Firebase Auth for user sessions. ID Token is stored client side, and sent on every request to my GAE back end. It seems costly, so I want to avoid it if I can. I suppose I don't need to ...
1
vote
1answer
28 views

How do I calculate average points scored by a team with a Firebase API resource in a React App?

I'm trying to build a React app to calculate the average points scored of the Raptors basketball team in in it's last N home games. Assuming that I'm using fetch (url) in the componentDidMount method ...
-1
votes
0answers
23 views

When to use Android Vitals and When to use Firebase?

I have a simple android dress up game developed in adobe flash. I don't know why my app is slow and how to optimize it should I implement Firebase or android vitals to improve my game performance I ...
0
votes
1answer
39 views

.forEach() in typescript loops over strange values?

I am trying to write code which should be looping over keys which are uids so I can use them. With the bellow code I was able to make this: (which is not what I want instead of length or name there ...
1
vote
2answers
22 views

How to delete AppEngine default service in the existing Google Cloud project with Firestore

I've the existing Google Cloud project that was created by Firebase and use Firestore in this project. Decided to try AppEngine and run Hello World Example in this project. Now I want to delete this ...