firebase

Getting nil in parsing Firebase values swift using Codable and CodableFirebase

孤者浪人 提交于 2021-02-10 06:56:33
问题 I am using Firebase Realtime Database, using codable approach in swift and external library CodableFirebase. I have created model structure but when I am trying to parse values (as i am getting all values) with model structure it gives me nil. My database has keys which might I am not properly handling in nested values. Please help. Thanks database structure snapshot attached. Code: Database.database().reference().child("users").observeSingleEvent(of: .value, with: { (snapshot) in guard let

ChildProcessError for image moderation firebase function

为君一笑 提交于 2021-02-10 06:46:09
问题 I'm trying implement image moderation code to remove adult or violent content as given here: https://github.com/firebase/functions-samples/tree/master/generate-thumbnail But every time i'm getting this error: ChildProcessError: Command failed: convert /tmp/test folder/yes.jpg -channel RGBA -blur 0x8 /tmp/test folder/yes.jpg convert: unable to open image `/tmp/test': No such file or directory @ error/blob.c/OpenBlob/2712. convert: no decode delegate for this image format `' @ error/constitute

Firebase Cloud Functions for Firestore are not triggering

五迷三道 提交于 2021-02-10 06:34:48
问题 Cannot get Firebase Cloud Functions for Firestore to trigger on onWrite of my collection. Trying to setup device to device push notification for chat app. Function is deployed and on Pay as you go plan, however, changes in document, updates or create in "chats" collection is not triggering. Firebase cloud messaging is supposed to send a push and write to the log. Neither is happening. Push is working with other sources. Thanks for your help, wish device to device push notifications was easier

Firebase Cloud Functions for Firestore are not triggering

一笑奈何 提交于 2021-02-10 06:34:26
问题 Cannot get Firebase Cloud Functions for Firestore to trigger on onWrite of my collection. Trying to setup device to device push notification for chat app. Function is deployed and on Pay as you go plan, however, changes in document, updates or create in "chats" collection is not triggering. Firebase cloud messaging is supposed to send a push and write to the log. Neither is happening. Push is working with other sources. Thanks for your help, wish device to device push notifications was easier

Firebase Storage: Play back of a video url directly?

可紊 提交于 2021-02-10 06:28:06
问题 I have been searching a lot about this by now and I got nothing: I am trying to play a video from firebase storage and trying to be able to see its progress on the player as it loads and to be able to seek it backward and forward (stuff that any player does while streaming a video). The problem: Firebase team say that it is not possible to stream a video from the cloud storage (it is not supported). Eventhough I was able to do this: String url = "my_url_at_firebase_storage"; video_View

How to schedule jobs for python code in Firebase?

我的梦境 提交于 2021-02-10 06:22:13
问题 I want to make my code run once a day in firebase server. The code is using some pulling data out of HTTP libraries as beautiful soup. I could not find appropriate result after some search. Can you give me instructions how to do it? Thanks in advance 回答1: You could have a look to function-cron which allows you to schedule cron jobs in Firebase . Google App Engine provides a Cron service. Using this service for scheduling and Google Cloud Pub/Sub for distributed messaging, you can build an

FieldValue.arrayRemove() to remove an object from array of objects based on property value

三世轮回 提交于 2021-02-10 06:14:32
问题 I have a document with the following structure: { "email" : "a@gmail.com", "value" : 100, "children" : [ { "email" : "b@gmail.com", "value" : 100 }, { "email" : "b@gmail.com", "value" : 200 } ] } I want to remove all elements with the email b@gmail.com from the children array. I am able to remove one item if I pass the whole object to be removed like this: FieldValue.arrayRemove(childObject) But I want both the objects with the email b@gmail.com to be removed. Is there anyway to achieve this

Cannot retrieve data using FirebaseRecyclerOptions after upgrading to FirebaseUI 3.0

允我心安 提交于 2021-02-10 05:50:23
问题 I'm using FirebaseRecyclerOptions because I upgraded to the new FirebaseUI 3.0 version but now I cannot retrieve anything from the database. The same code used to work very well in the old FirebaseRecylcerAdapter method. It seems like it doesn't even enter onBindViewHolder . Initializations linearLayoutManager = new LinearLayoutManager(this); linearLayoutManager.setReverseLayout(true); linearLayoutManager.setStackFromEnd(true); recyclerView = findViewById(R.id.main_recycler); recyclerView

specific ringtone firebase notification xamarin.android

霸气de小男生 提交于 2021-02-10 05:48:26
问题 How i can force the push notification to run ringtone instead of default notification sound is there any way to ovveride the default behaviour for firebase onMessageReceived 回答1: You could set the specific ringtone in firebase notification. When you use API 26 or later, you would use Channel of Notification. Use the SetSound of channel would cover the default notification sound. Set the Ringtone with SetSound method of Channel. channel.SetSound(RingtoneManager.GetDefaultUri(RingtoneType

specific ringtone firebase notification xamarin.android

主宰稳场 提交于 2021-02-10 05:48:07
问题 How i can force the push notification to run ringtone instead of default notification sound is there any way to ovveride the default behaviour for firebase onMessageReceived 回答1: You could set the specific ringtone in firebase notification. When you use API 26 or later, you would use Channel of Notification. Use the SetSound of channel would cover the default notification sound. Set the Ringtone with SetSound method of Channel. channel.SetSound(RingtoneManager.GetDefaultUri(RingtoneType