firebase-realtime-database

Swift macOS Firebase

亡梦爱人 提交于 2020-12-06 12:17:14
问题 I have an IOS app with Firebase enabled. Now im currently trying to add a macOS swift app to this project but i cant figure it out how to do it. ( I know that there is an option to port IOS apps to macOS, but i want two separate apps with different functions , one for IOS and one for macOS ) There is no option (as far as i know) in Firebase Admin to add a macOS app so i created a new IOS app in Firebase Admin and tried to set up with the macOS app project. (most likely this is the problem

Swift macOS Firebase

為{幸葍}努か 提交于 2020-12-06 12:13:20
问题 I have an IOS app with Firebase enabled. Now im currently trying to add a macOS swift app to this project but i cant figure it out how to do it. ( I know that there is an option to port IOS apps to macOS, but i want two separate apps with different functions , one for IOS and one for macOS ) There is no option (as far as i know) in Firebase Admin to add a macOS app so i created a new IOS app in Firebase Admin and tried to set up with the macOS app project. (most likely this is the problem

Firebase Rules with facebook Authentication and Unique IDs

馋奶兔 提交于 2020-12-06 12:10:01
问题 I'm looking for some advice or a possible solution with tightening up my firebase rules. This is my user tree in Firebase: users |_male |_uid |_female |_uid The UID will be an epoch timestamp when the account is created which will be a signed integer. These are the firebase rules which basically ensures the user has logged in and authenticated with Facebook before they can read or write to users: "users": { "male":{ ".indexOn": ["uid"] }, "female":{ ".indexOn": ["uid"] }, ".read": "auth !=

Firebase Rules with facebook Authentication and Unique IDs

半腔热情 提交于 2020-12-06 12:03:27
问题 I'm looking for some advice or a possible solution with tightening up my firebase rules. This is my user tree in Firebase: users |_male |_uid |_female |_uid The UID will be an epoch timestamp when the account is created which will be a signed integer. These are the firebase rules which basically ensures the user has logged in and authenticated with Facebook before they can read or write to users: "users": { "male":{ ".indexOn": ["uid"] }, "female":{ ".indexOn": ["uid"] }, ".read": "auth !=

Firebase remove node based on child value

孤街醉人 提交于 2020-12-02 08:08:18
问题 I want to delete the entire node by query like delete * WHERE user_id = "-KTruPWrYO9WFj-TF8Ft" How can I achieve this on firebase? -KVpQFXnzQkzzrowHxGk answer: "1" question_number: 2 user_id: "-KTruPWrYO9WFj-TF8Ft" -KVpQFXODhsAMJYFNjy7 answer: "4" question_number: 25 user_id: "-KTruPWrYO9WFj-TF8Ft" 回答1: To delete all references with child having some particular value first you will need to retrieve all keys ('-KVpQFXnzQkzzrowHxGk', '-KVpQFXnzQkzzrowHxGk' in your case) with equalTo query and

Adding and “.indexOn”: “.value” into Firebase Rules

落花浮王杯 提交于 2020-12-01 02:33:43
问题 I'm studying AngularJS and Firebase and I'm playing with a simple ChatApp, just to understand the code. My Firebase DB structure is like this: "chat": { "messages": { "chat1": { [ list of messages ] }, "chat2": { [ list of messages ] } }, "rooms": { "chat1": { "users": { "user1": true, "user2": true } }, "chat2": { "users": { "user2": true, "user3": true } } } } Due to Firebase protection Rules I can't add chat link in the user node, than I necessary have to do a Firebase query to retrieve

Adding and “.indexOn”: “.value” into Firebase Rules

孤人 提交于 2020-12-01 02:33:39
问题 I'm studying AngularJS and Firebase and I'm playing with a simple ChatApp, just to understand the code. My Firebase DB structure is like this: "chat": { "messages": { "chat1": { [ list of messages ] }, "chat2": { [ list of messages ] } }, "rooms": { "chat1": { "users": { "user1": true, "user2": true } }, "chat2": { "users": { "user2": true, "user3": true } } } } Due to Firebase protection Rules I can't add chat link in the user node, than I necessary have to do a Firebase query to retrieve

No adapter attached; skipping layout in fragment using firebase database

蹲街弑〆低调 提交于 2020-11-29 23:46:51
问题 I have gone through most of the topics related to it and couldn't find the proper solution. I am getting an error "E/RecyclerView: No adapter attached; skipping layout" when retrieving the data from firebase database to my fragments using recycler view. Please see the code below: Resources : Fragment file import android.os.Bundle; import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; import androidx.recyclerview.widget.GridLayoutManager; import androidx.recyclerview

No adapter attached; skipping layout in fragment using firebase database

爱⌒轻易说出口 提交于 2020-11-29 23:46:22
问题 I have gone through most of the topics related to it and couldn't find the proper solution. I am getting an error "E/RecyclerView: No adapter attached; skipping layout" when retrieving the data from firebase database to my fragments using recycler view. Please see the code below: Resources : Fragment file import android.os.Bundle; import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; import androidx.recyclerview.widget.GridLayoutManager; import androidx.recyclerview

Updating Data in Firebase using React and Axios

为君一笑 提交于 2020-11-29 12:17:19
问题 I'm trying to update some data in a firebase database. However i am unable to get the updateAPI function to work properly. I believe it's something to do with axios.put, the url is probably not traversing the data correctly? I have tried changing the url but end up with a OPTIONS and CORS errors which means the url is incorrect. // API Function calls async getAPI(){ const response = await axios.get('https://fir-test-euifhefibewif.firebaseio.com/todos.json') console.log(response) console.log