firebase

Why is FCM Push Messages on iOS only working in production or via TestFlight?

余生长醉 提交于 2021-02-11 17:37:36
问题 I'm trying to get push notifications working on FCM. I'm using the new authentication key way with the .p8 file. Everything is working when I use TestFlight to get the app on my iPhone. But when I use Xcode during development, I receive the message in foreground mode. But it's not shown in the system tray when the app is closed / in background mode. Is it even possible to receive notifications when the app is installed via xcode directly on the phone? Since notifications are also not working

How to update a single field of all documents in firestore using flutter?

北慕城南 提交于 2021-02-11 17:14:55
问题 I have a 100 user documents in database, and I have to update one field to 0 in all documents. How do we do it? 回答1: Firestore doesn't offer a SQL-like "update where" command that updates everything at once, so you will have to: Query for the documents to update Iterate each DocumentSnapshot and get its DocumentReference object using the reference property For each document, update the field with its new value 回答2: Try doing the following Query the documents to update Go through each

Securing firebase realtime database when using only anonymous login

孤街醉人 提交于 2021-02-11 17:14:53
问题 I am using firebase realtime database with firebase anonymous login. When I use the below private rules to secure the firebase realtime database . I get Permission denied error on my client when an anonymously logged in user tries to save data to firebase realtime database . How can I get over this error ? Note: I don't want to use public rules and I want to use firebase anonymous login. Private rules: Firebase realtime database rules that allows only authenticated users to read and write

Securing firebase realtime database when using only anonymous login

青春壹個敷衍的年華 提交于 2021-02-11 17:14:27
问题 I am using firebase realtime database with firebase anonymous login. When I use the below private rules to secure the firebase realtime database . I get Permission denied error on my client when an anonymously logged in user tries to save data to firebase realtime database . How can I get over this error ? Note: I don't want to use public rules and I want to use firebase anonymous login. Private rules: Firebase realtime database rules that allows only authenticated users to read and write

Securing firebase realtime database when using only anonymous login

人盡茶涼 提交于 2021-02-11 17:14:15
问题 I am using firebase realtime database with firebase anonymous login. When I use the below private rules to secure the firebase realtime database . I get Permission denied error on my client when an anonymously logged in user tries to save data to firebase realtime database . How can I get over this error ? Note: I don't want to use public rules and I want to use firebase anonymous login. Private rules: Firebase realtime database rules that allows only authenticated users to read and write

How to update a single field of all documents in firestore using flutter?

百般思念 提交于 2021-02-11 17:12:56
问题 I have a 100 user documents in database, and I have to update one field to 0 in all documents. How do we do it? 回答1: Firestore doesn't offer a SQL-like "update where" command that updates everything at once, so you will have to: Query for the documents to update Iterate each DocumentSnapshot and get its DocumentReference object using the reference property For each document, update the field with its new value 回答2: Try doing the following Query the documents to update Go through each

Firebase App Distribution with apk splits unable to find apk

 ̄綄美尐妖づ 提交于 2021-02-11 17:05:06
问题 I'm trying to bend firebase app distribution to work with apk splits. I almost have it, however my issue is this Could not find the APK. Make sure you build first by running ./gradlew assemble[Variant], or set the apkPath parameter to point to your APK My task task firebaseAllEnvRelease() { group = "publishing" dependsOn ordered( ":printVersionCode", ":foo:app:assembleAllRelease" ":foo:app:firebasePublishAllEnvRelease") } For whatever reason, the firebase task runs the apk check (not upload)

Firebase keepsynced

和自甴很熟 提交于 2021-02-11 17:00:06
问题 Working with Firebase in a Unity project, for a simple highscore, I stumbled on problems when doing a query. In editor, everything works like a charm (Editor does not have persistence) On devices (with persistence enabled) the troubles begin. Query is showing cached Firebase data, so it is only correct on first ever call in the client, and then when Firebase sees it fit to sync (maybe never, since there is no eventhandler) However, looking for a solution, there is no way to force an update of

Firebase keepsynced

ぐ巨炮叔叔 提交于 2021-02-11 16:59:44
问题 Working with Firebase in a Unity project, for a simple highscore, I stumbled on problems when doing a query. In editor, everything works like a charm (Editor does not have persistence) On devices (with persistence enabled) the troubles begin. Query is showing cached Firebase data, so it is only correct on first ever call in the client, and then when Firebase sees it fit to sync (maybe never, since there is no eventhandler) However, looking for a solution, there is no way to force an update of

Angular 8 /Firebase: how do I set the displayName when creating user with email and password?

人走茶凉 提交于 2021-02-11 16:51:27
问题 After reading so many posts and empty(or not?) solutions, I figured that the best thing was to post of my own. So my goal is just to get the displayName of the user so in a list of posts or whatever, the authorship doesnt look ugly with a uid... Here's what I find relevant for the problem: Signup reactive form, later called on onInit: createForm() { this.registerForm = this.fb.group( { name: ['', Validators.required], email: ["", [Validators.required]], password: [null, [Validators.required,