firebase-realtime-database

Cannot resolve symbol FirebaseListAdapter [duplicate]

吃可爱长大的小学妹 提交于 2020-01-25 07:56:07
问题 This question already has an answer here : Firebase List Adapter Constructor error (1 answer) Closed 2 years ago . How do I insert the FirebaseListAdapter correctly? I always get the error "Can not resolve FirebaseListAdapter". If you need something, I'll post it. The whole is supposed to spend chat messages. The error is output in line 26. My code: import android.content.Intent; import android.support.annotation.NonNull; import android.support.design.widget.FloatingActionButton; import

Reading a nodejs promise with firebase

怎甘沉沦 提交于 2020-01-25 07:20:28
问题 I'm trying to read a value from firebase using nodejs. I got the reading part working. However I cannot get the value to be output. I'm pretty new to nodejs and I believe I'm doing something wrong with reading promises. Here is my code #index.js var firebase = require('./firebase'); firebase.readValue(data => { console.log('--- output value') console.log(data); }) #firebase.js (function(){ var admin = require('firebase-admin'); var serviceAccount = require('./keys/<keyfile>'); admin

Object not getting From Datasnapshot using valueEventListerner but Working find but AddChildEventListern

为君一笑 提交于 2020-01-25 07:20:13
问题 When i try to get a Object from addChildListerner(DataSnapShot) it works fine and assign to DataSnapshot to object This working fine: myRef = database.getReference("Chat").child(Combine); myRef.orderByKey().limitToLast(1).addChildEventListener(new ChildEventListener() { @Override public void onChildAdded(@NonNull DataSnapshot dataSnapshot, @Nullable String s) { ChatData user = dataSnapshot.getValue(ChatData.class); userChild.add(user); But when i try to get same Object using ValueListerner

Android Firebase - add authenticated user into database

风格不统一 提交于 2020-01-25 06:41:16
问题 Ok, so I am building xamarin.android applicationon in Visual Studio and there is quite a lot of questions of this type, but I really didn't find anything regarding xamarin.android, everything is Java based. I tried following those tutorials and answers but there was always something missing or not working on Xamarin android. I have made authentication and it works great, no problems there. And i tried storing user information (info that user types in while registering) into database. It kind

Android Firebase - add authenticated user into database

不问归期 提交于 2020-01-25 06:41:09
问题 Ok, so I am building xamarin.android applicationon in Visual Studio and there is quite a lot of questions of this type, but I really didn't find anything regarding xamarin.android, everything is Java based. I tried following those tutorials and answers but there was always something missing or not working on Xamarin android. I have made authentication and it works great, no problems there. And i tried storing user information (info that user types in while registering) into database. It kind

how to get string array from firebase realtime database

大兔子大兔子 提交于 2020-01-24 22:42:20
问题 databaseReference = FirebaseDatabase.getInstance().getReference("/sample"); databaseReference.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(@NonNull DataSnapshot dataSnapshot) { Log.d(TAG, "onDataChange: dataSnapshot "+dataSnapshot.getValue()); } @Override public void onCancelled(@NonNull DatabaseError databaseError) { } }); I'm new to android app development and firebase as well. i m fetching data from sample node and getting DataSnapshot value like

React + Firebase using hooks?

假如想象 提交于 2020-01-24 22:13:29
问题 I found a great tutorial on using React with Firebase for a very simple use of just storing a text field's data in a database, but I'm stumped on how to convert it to using Hooks. There aren't many tutorials I could find out there on using Hooks + Firebase, so I'd appreciate any help! import React, {useState} from 'react' import fire from './fire' import './App.css' const App = () => { let [messageList, setMessageList] = useState([]) const handleSubmit = (e) => { e.preventDefault() } return(

ngrx store does not update UI after dispatched action from firebase promise

落爺英雄遲暮 提交于 2020-01-24 20:16:18
问题 I am trying to develop a basic NativeScript app using Angular 4. I am also using ngrx store and firebase as a realtime database. When I use a sample array and update the store and not integrate with firebase the program works fine. UI gets updated too. let value = [ { "description": "Groups discussing about Technology", "category": "Tech" }, { "description": "Groups for all kinds of sports ", "category": "Sports" } ]; this.store.dispatch({ type: GroupCategoryListActions.ADD_ITEMS, payload:

When I generate the signed apk, save the wrong data to Firebase Database

风格不统一 提交于 2020-01-24 20:12:54
问题 When I run the usb debugging app, it saves the data correctly when I register the user: But when I generate the signed apk, doing the same process saves it this way in Firebase Database: What is happening? (i use android studio) 回答1: It's because proguard removes (obfuscation) unused code and renames classes and class members' (variables and methods) names to shorter names. There are two ways to keep them as you want OPTION 1. Add annotation before every field and between parentheses put what

how to get image downloadable url from firebase storage and store in firebase database?

喜夏-厌秋 提交于 2020-01-24 19:56:27
问题 I am storing users profile pictures in firebase storage. I want to get the downloadable URL of those profile pictures and store each users profile picture URL under his/her User ID in firebase database. Here is my code for storing the picture in firebase storage. But i don't know how to get the URL and store in database under respective user's ID. I have also attached the snapshot of my firebase database. Firebase database image protected void onActivityResult(int requestCode, int resultCode,