How to check specific users (friends) online/offline presence in React Native Firebase #4191
-
I'm working on an app where I need to show the friend's online/offline presence ( not all users ), as you can see in the picture below. If I listen to users presence method then what will I do if the users are more than 1000? it gets the data downloaded on every change which I don't want because all of the users are not in friends list. What if I add multiple listeners for every friends then how could it be efficient? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
Well the first question to ask is |
Beta Was this translation helpful? Give feedback.
-
Also you should learn about pagination |
Beta Was this translation helpful? Give feedback.
-
I'm not sure this is react-native-firebase specific at all. The same problem would apply for presence detection for any firebase product. They have support channels upstream and a heavy presence in learning activities, @owaisulwara have you thought about contacting Google Firebase team through their official education channels and seeing if they have any applicable case studies or would do one? They do a few videos a week and this is an interesting problem - if they have not already tackled it they might be interested. |
Beta Was this translation helpful? Give feedback.
-
@owaisulwara did you find a good solution? I have the same problem. |
Beta Was this translation helpful? Give feedback.
-
Does anyone have an answer to efficiently setup a presence system? I've only encountered very few posts regarding a firestore presence system and they don't have answers but generic approaches: |
Beta Was this translation helpful? Give feedback.
I'm not sure this is react-native-firebase specific at all. The same problem would apply for presence detection for any firebase product. They have support channels upstream and a heavy presence in learning activities, @owaisulwara have you thought about contacting Google Firebase team through their official education channels and seeing if they have any applicable case studies or would do one? They do a few videos a week and this is an interesting problem - if they have not already tackled it they might be interested.