Categories
Android Development Firebase

Firebase Auth UI Android, task returned by getIdToken() never completes

After a successful login, I am unable to get the id token using the getIdToken() method. This method returns a task and the task never completes. Using basic email id/password authentication using Firebase Auth UI in an android app. new AuthUI.IdpConfig.EmailBuilder().build() Here is the library version: implementation ‘com.firebaseui:firebase-ui-auth:6.1.0’ Here is how I am fetching the […]

Categories
Development Firebase React

Clear a react state field before refreshing with new data from firebase

The screenshot is from State.Firestore.ordered.trainings in the console. Let’s say exampleA.js has the following codes of firestoreConnect([ { collection: “trainings”, ]) while exampleB.js has the following codes of firestoreConnect([ { collection: “trainings”, orderBy: [“dateTime”, “asc”], where:[[“trainingName”,”==”,”abc123″]] } ]) When I first loaded exampleA.js, the trainings data are loaded randomly from the database(Firestore), as shown and […]

Categories
Development Firebase Google

Flutter google maps and firebase not working together

I am using google map and firebase in my app but app does not compile and throws following error FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:preDebugBuild’. > Android dependency ‘com.android.support:support-v4:26.1.0’ is set to compileOnly/provided which is not supported Following is my app/build.gradle file def localProperties = new […]

Categories
API Development Firebase

Custom Firebase API for Apps

I am developing a new application that integrates into Firebase. My question is whether I should have the application connect directly to Firebase Database? Or should I develop my own custom API using Node.js and have my app connect to those API’s? Or is it OK for my app to connect directly to Firebase Database?

Categories
Database Development Firebase

Firebase Realtime database return wrong value in the second time returned snapshot

I am reading user profile from database, but the first time I read, it returns the right value (full attributes of a user object), but the second time it fires, it returns only 1 attribute (other attributes is null). this is my code if (mProfileValueEvent != null) mProfileRef.removeEventListener(mProfileValueEvent); mProfileValueEvent = new ValueEventListener() { @Override public […]

Categories
Development Firebase

How to cancel a scheduled firebase function?

I’m developing a NodeJS application, running on Firebase, where I need to schedule some email sendings, for which I intend to use functions.pubsub.schedule. Turns out that I need to cancel those jobs when needed, and I’d like to know some way to identify them for eventual possible cancellation, and some way yo effectively cancel them. […]

Categories
Database Development Firebase GitHub Google Windows

Is there a way to Batch Insert Records in google Firebase database under Windows forms?

the below code for inserting one record to google firebase using Firesharp libarary for c# under windows forms ,but i want to insert bulk records at ones , like in sql SQL server bulk.DestinationTableName = “test”; bulk.WriteToServer(table); code for inserting one record to firebase class Student { public string FullName { get; set; } public […]

Categories
Development Firebase Java

Listener not working for firebase datareference in java

import com.google.auth.oauth2.GoogleCredentials; import com.google.firebase.FirebaseApp; import com.google.firebase.FirebaseOptions; import com.google.firebase.database.*; import com.google.gson.Gson; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.logging.Logger /** * * @author adnan */ public class Json_Reader { private final static Logger log = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME); public static void intializeFirebase() throws FileNotFoundException, IOException { FileInputStream serviceAccount = new FileInputStream(“/home/adnan/Downloads/cryleticstest-firebase-adminsdk-avbul-f5ea5a09ca.json”); FirebaseOptions options = new FirebaseOptions.Builder() .setCredentials(GoogleCredentials.fromStream(serviceAccount)) .setDatabaseUrl(“https://cryleticstest.firebaseio.com”) […]

Categories
Development Firebase

Trying to get firebase data to load into component as state and then be edited

I’m struggling to get get data from Firebase to load into a form wizard. The basic example I am trying right now is just to display some of the firebase data given the collection id. The current error I am receiving is that there isn’t the correct workflow id being parsed into the redux action. […]

Categories
Database Development Firebase

HOW TO STRING CONVERT TO FIREBASE DATABASE

String[] videoIDArray = getResources().getStringArray(R.array.video_id_array); String[] videoTitleArray = getResources().getStringArray(R.array.video_title_array); String[] videoDurationArray = getResources().getStringArray(R.array.video_duration_array);