firebase

Download from Firebase storage + ContentResolver (API >= 29)

依然范特西╮ 提交于 2021-02-10 18:40:04
问题 I am trying to connect ContentResolver and Firebase Storage downloads. Goal: download the files from Firebase storage either into the image gallery or to audio folder. What I did: ContentValues values = new ContentValues(); values.put(MediaStore.MediaColumns.DISPLAY_NAME, "FileName1"); values.put(MediaStore.MediaColumns.MIME_TYPE, "image/jpeg"); values.put(MediaStore.MediaColumns.RELATIVE_PATH, "Pictures" + customDir); AsyncQueryHandler asyncQueryHandler1 = new AsyncQueryHandler

Download from Firebase storage + ContentResolver (API >= 29)

隐身守侯 提交于 2021-02-10 18:28:37
问题 I am trying to connect ContentResolver and Firebase Storage downloads. Goal: download the files from Firebase storage either into the image gallery or to audio folder. What I did: ContentValues values = new ContentValues(); values.put(MediaStore.MediaColumns.DISPLAY_NAME, "FileName1"); values.put(MediaStore.MediaColumns.MIME_TYPE, "image/jpeg"); values.put(MediaStore.MediaColumns.RELATIVE_PATH, "Pictures" + customDir); AsyncQueryHandler asyncQueryHandler1 = new AsyncQueryHandler

What IAM roles are needed for deploying to Firebase Hosting?

こ雲淡風輕ζ 提交于 2021-02-10 18:27:24
问题 I am trying to give permissions to a third party to make deployments to Firebase Hosting on a project I have set up. I explored the IAM permissions available in the GCP console, and the only half-related role seems to be the Firebase Rules System , however that didn't allow the user to deploy to hosting. While Project Editor would probably work, I don't want to give them that much authority, as they could launch other Firebase products at my expense. What IAM roles should I add to allow a

What IAM roles are needed for deploying to Firebase Hosting?

陌路散爱 提交于 2021-02-10 18:19:38
问题 I am trying to give permissions to a third party to make deployments to Firebase Hosting on a project I have set up. I explored the IAM permissions available in the GCP console, and the only half-related role seems to be the Firebase Rules System , however that didn't allow the user to deploy to hosting. While Project Editor would probably work, I don't want to give them that much authority, as they could launch other Firebase products at my expense. What IAM roles should I add to allow a

Can Firebase anonymous UID expire on its own on Android/iOS SDK?

旧街凉风 提交于 2021-02-10 18:01:46
问题 I am using Firebase Unity. I found that in a separate run of the app if you initialize FirebaseApp with the same string name, you can get the previous run's FirebaseAuth 's CurrentUser and I can see the UID. I can even preserve 2 CurrentUser by multiple FirebaseApp instance (seems to be linked by string name) This way I can use SignInAnonymously in an intended way, to onboard the player and let him play as many days or as many app run as he wants until he want to commit to the game by

Check whether the writing permission was accepted or denied

戏子无情 提交于 2021-02-10 17:57:44
问题 I am currently trying to implement a trading system for my unity android app using firebase. For that I have to check, if a player pressed the buy button for one trade, if the selected trade is still available in the firebase database. The way it is supposed to work is, that the player who wants to buy something checks in the corresponding trade, if the buyerId is still empty, and if so puts his own id in there. I've set up the firebase rules, so that the buyerId and buyerName can only be set

Property 'firestore' does not exist on type 'FirebaseNamespace' with Firebase v7.15.1

落爺英雄遲暮 提交于 2021-02-10 17:53:37
问题 When I upgrade from firebase v7.14.3 to v7.15.1 I get the following build error / typescript error: TS2339: Property 'firestore' does not exist on type 'FirebaseNamespace'. I import and use Firestore as following: import {firebase} from '@firebase/app'; import '@firebase/firestore'; const firestore: firebase.firestore.Firestore = firebase.firestore(); => firebase.firestore() is my issue. I have probably missed the CHANGELOG, any help on how to migrate this appreciated! 回答1: I have always

Can Firebase anonymous UID expire on its own on Android/iOS SDK?

爷,独闯天下 提交于 2021-02-10 17:52:42
问题 I am using Firebase Unity. I found that in a separate run of the app if you initialize FirebaseApp with the same string name, you can get the previous run's FirebaseAuth 's CurrentUser and I can see the UID. I can even preserve 2 CurrentUser by multiple FirebaseApp instance (seems to be linked by string name) This way I can use SignInAnonymously in an intended way, to onboard the player and let him play as many days or as many app run as he wants until he want to commit to the game by

Property 'firestore' does not exist on type 'FirebaseNamespace' with Firebase v7.15.1

£可爱£侵袭症+ 提交于 2021-02-10 17:52:26
问题 When I upgrade from firebase v7.14.3 to v7.15.1 I get the following build error / typescript error: TS2339: Property 'firestore' does not exist on type 'FirebaseNamespace'. I import and use Firestore as following: import {firebase} from '@firebase/app'; import '@firebase/firestore'; const firestore: firebase.firestore.Firestore = firebase.firestore(); => firebase.firestore() is my issue. I have probably missed the CHANGELOG, any help on how to migrate this appreciated! 回答1: I have always

Why does Google Cloud Function run a global function multiple times after deploy?

北城余情 提交于 2021-02-10 17:52:22
问题 I have set multiple triggers, like: exports.doSomething = functions.firestore.document('col/{doc}').onCreate(event => {}) Than I have a function that I want to run instant when I deployed. That looks something like this: now() function now(){ console.log("running function") } And I get this in my logs: Why does it run so many times and gets called by other functions? Full code, just tested it and running function gets called 4 times, the same amount as triggers I have set: const functions =