New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔥 Hot Fix - Firebase - live Updates issues #1108
Comments
NOTES
NOTES
|
Added the video recordings and logs to Slack, which does not seem to be catching any issues, but it still gets stuck in updating the real-time data. |
Sentry has a few errors with my IP; maybe it helps to sort out this issue:
|
Detected error:
|
I changed a setting on Cloudflare and for now, this error is not being shown. |
NOTES
|
The issue persists, and we lose the WebSocket connection.
In our case, the probable culprit should be a code issue. I have confirmed that we are within the connection limits. |
Has this been sent to |
Maybe this technique might be useful:
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
exports.keepAlive = functions.database.ref('/keepAlive').onUpdate((change, context) => {
// Get the Firebase Realtime Database instance
const database = admin.database();
// Get the current timestamp
const timestamp = new Date().getTime();
// Update the "lastSeen" value for each connected client
database.ref('/status').once('value', (snapshot) => {
const status = snapshot.val();
for (const key in status) {
if (status.hasOwnProperty(key)) {
const client = status[key];
// Only update the "lastSeen" value if the client is connected
if (client.connected) {
database.ref(`/status/${key}/lastSeen`).set(timestamp);
}
}
}
});
// Schedule the next keep-alive message in 30 seconds
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve();
}, 30000);
});
});
`
|
Firebase updates do not work correctly when closing the devices and getting back to them later. RPReplay_Final1682780619.MP4 |
NOTES
NOTES
🔍 CAUSE
RESOURCES
Stackoverflow (source)
Stackoverflow (source)
RESOURCES
Stackoverflow (source)
REPLICATE (CONSISTENTLY)
Inquiry made to: |
Still not working. Desktop issues also: |
It stopped and Im unable to click anything, the script was broken.
|
Some more information I'd like to put forward if it helps is that:
|
Thanks @meropis It seems that the issue was on iOS and Firebase. In the new iOS 17 the issue ceased to exist. |
🐛 Introduction:
Real-time updates on fixtures incidents, scores, and other events should update in real-time.
📝 Details:
Currently, when using the PWA live score updates on the live score table, fixtures and other platform parts with real-time updates stop updating. Making it necessary to refresh the page or restart the PWA.
🔍 Steps to Reproduce:
Use the mobile version of the platform with the PWA and Safari browser. These issues were detected on both versions.
🤔 Expected Behavior:
Real-time updates when the browser is opened or when coming back to the browser to check updates, the same for the PWA version.
💥 Actual Behavior:
PWA stops updating, and in the mobile version in the browser, the same happens with less intensity.
The text was updated successfully, but these errors were encountered: