Questions tagged as 'google-cloud-firestore'

1
answer

Display a value of Firestore in a TextView - Android Studio

I have a collection stored in Firestore, which is called "Score", there I have saved different values (all are int). What I want is to show the values in another simple activity. I tried the following code: public void Resultado(View...
asked by 08.10.2018 / 03:06
0
answers

Run only once the valueChanges () function within a promise

I have the following function that returns the data stored in cloud firestore, verifica_en_firebase(nombre: string) { return new Promise((resolve, reject) => { this.doc = this.db.doc('/usuarios/${nombre}') .valueChanges().subscribe...
asked by 02.08.2018 / 19:27
1
answer

App Cordova Android - Firestore does not reestablish connection after the OS puts the app in Sleep mode

Develop an app with Cordova for Android and Firestore (v 4.12.1) to save documents. After Android puts the app in Sleep mode, when it returns to the foreground again, I can not read or create a document in Firestore, apparently the connection is...
asked by 28.07.2018 / 03:35
0
answers

How do I download the trained Google Cloud model to my PC?

I have my model here and now how do I download it? I have reviewed the commands gcloud compute scp --recurse [INSTANCE_NAME]: [REMOTE_DIR] [LOCAL_DIR] but I do not understand how to use them, which is the instance name?     
asked by 15.07.2018 / 18:52
1
answer

Angular Problem Firestore - The function does not return any value

I'm having a problem with the following function. retornaCantidadActual(itemProducto) { this.prodserv.getProdObservable(itemProducto).subscribe(dataprod => { const xxprod = dataprod; console.log('Funcion retornaCantidadActual =====>...
asked by 08.07.2018 / 03:30
0
answers

Update in firebase Cloud

I have the following code to update in firebase: this.db.collection('users').doc(nombre).update({ 'data_array' : { status:estatus } }) .then(function () { }) .catch(function (error) { console.log("Error ! "+error); });...
asked by 29.06.2018 / 00:26
2
answers

Download a file from Firebase Storage from Android

I am developing an application in which I want to be able to download a JSON file from a server and then be consumed on the device locally (in order to feed certain activities with information). This I do to be able to update the information...
asked by 31.05.2018 / 04:50