firebase-realtime-database

How to resize images uploaded to Cloud Storage to a specified size?

淺唱寂寞╮ 提交于 2020-01-11 04:15:32
问题 I am using RecyclerView in my application for the professor to see the students list where there will be photos and other details and delete options. Everything I tried to do carefully. But there is a problem that photo from firebase is not loading into the RecyclerView . Sometimes it loads one or two photos then it stops loading photo. I was observing the Run option on android Studio while my app is loading. Then I found something like... W/art: Throwing OutOfMemoryError "Failed to allocate

Firebase get Download URL after successful image upload to firebase storage

江枫思渺然 提交于 2020-01-11 00:08:09
问题 I am trying to upload a single image to Firebase Storage, then grab its download url and assign this to a variable. I can upload my image to firebase successfully, however I cannot retrieve the download url. here is what I have tried already. upload() { let storageRef = firebase.storage().ref(); let success = false; for (let selectedFile of [(<HTMLInputElement>document.getElementById('file')).files[0]]) { let router = this.router; let af = this.af; let folder = this.folder; let path = `/$

Firebase get Download URL after successful image upload to firebase storage

北战南征 提交于 2020-01-11 00:07:27
问题 I am trying to upload a single image to Firebase Storage, then grab its download url and assign this to a variable. I can upload my image to firebase successfully, however I cannot retrieve the download url. here is what I have tried already. upload() { let storageRef = firebase.storage().ref(); let success = false; for (let selectedFile of [(<HTMLInputElement>document.getElementById('file')).files[0]]) { let router = this.router; let af = this.af; let folder = this.folder; let path = `/$

How to get userID by user Email Firebase android?

被刻印的时光 ゝ 提交于 2020-01-10 14:14:31
问题 Given a email address, is it possbile to get userID of a person? For example, If I have a variable email that has email of the person. Can I get their ID by doing something like String userID = mAuth.DatabaseReference.getuID.(email); Sorry if this a stupid question. Edit: note, I am looking to get ID of a person who is not the current user. So I can't use FirebaseUser user = mAuth.getCurrentUser(); The structure of my database looks like this, so the ID will be stored in database already. I

How to get userID by user Email Firebase android?

混江龙づ霸主 提交于 2020-01-10 14:12:14
问题 Given a email address, is it possbile to get userID of a person? For example, If I have a variable email that has email of the person. Can I get their ID by doing something like String userID = mAuth.DatabaseReference.getuID.(email); Sorry if this a stupid question. Edit: note, I am looking to get ID of a person who is not the current user. So I can't use FirebaseUser user = mAuth.getCurrentUser(); The structure of my database looks like this, so the ID will be stored in database already. I

How To Display Multiple Markers Coordinates Stored In Firebase Database On Google Maps

此生再无相见时 提交于 2020-01-10 05:57:41
问题 I am trying to get the coordinates that are saved in the firebase real-time database and display them on a map using the google maps API. This is the code I have so far. Right now it opens and shows the users current location using the html5 geolocation API and it syncs the lat and long coordinates to the firebase real-time database using Geofire. I don't know how to retrieve these points and have multiple points on the google map at the same time showing different users locations. If anyone

Firebase .indexOn dynamic keys

China☆狼群 提交于 2020-01-10 04:14:07
问题 I've started testing Firebase and I can't figure out one thing about indexing. I'm creating a structure based on what I've read on - Firebase Data Structuring - something like that example with Users and Groups. JSON tree looks something like this: { "babies" : { "-KQSVCXI-ZMz_lQ_Q906" : { "name" : "Baby", "parents" : { "F0o8Gr5GC2SrakUYZpC20efcmk63" : true } }, "-KQSf4t9XQC3LnbsxLYS" : { "name" : "Name2", "parents" : { "S6aO6Dx4lgg6anW9S9hu7EJrhVg1" : true } } } } and I'm trying to get

Uncaught exception in Firebase runloop (3.0.0) related to persistence and queries

ぃ、小莉子 提交于 2020-01-10 03:16:06
问题 I'm struggling with this exception for a while already. A relevant thread on the firebase group is kind of dead https://groups.google.com/forum/#!topic/firebase-talk/iy0762S3KsU, also two related on SO are unanswered: Uncaught exception in Firebase runloop (3.0.0) and Uncaught exception in Firebase runloop (3.0.0). Please report to support@firebase.com The workaround saying to switch off database persistence works, but it's not unacceptable for apps which require offline capability. I've

Swift Retreive Firebase data

雨燕双飞 提交于 2020-01-10 03:14:18
问题 The following data in the Firebase Database: { "schedule": { "Week 1": { "active": "true" }, "Week 2": { "active": "true" }, "Week 3": { "active": "false" }, "Week 4": { "active": "true" }, ... } } I want to retrieve all the Weeks where the active is true only. I am setting the Firebase reference as such: ref = FIRDatabase.database().reference(withPath: "Schedule") and then doing the following: ref.observeSingleEvent(of: .value, with: { snapshot in // print("Count: ", snapshot.childrenCount)

JsonMappingException: No suitable constructor found

烂漫一生 提交于 2020-01-10 03:13:07
问题 I am implementing a firebase example as given in their documentations. I am facing this error: com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class com.XYZ.$BlogPost]: can not instantiate from JSON object (need to add/enable type information?) Here is my code: public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity