React Native Firebase: realtime database listener and set data, push notification no longer trigger

React Native Firebase: realtime database listener and set data, push notification no longer trigger

Emrah KAYA

55 лет назад

20 Просмотров

Hello everyone! I hope this video has helped solve your questions and issues. This video is shared because a solution has been found for the question/problem. I create videos for questions that have solutions. If you have any other issues, feel free to reach out to me on Instagram: https://www.instagram.com/ky.emrah

Below, you can find the text related to the question/problem. In the video, the question will be presented first, followed by the answers. If the video moves too fast, feel free to pause and review the answers. If you need more detailed information, you can find the necessary sources and links at the bottom of this description. I hope this video has been helpful, and even if it doesn't directly solve your problem, it will guide you to the source of the solution. I'd appreciate it if you like the video and subscribe to my channel!React Native Firebase: realtime database listener and set data, push notification no longer triggers

Firebase version
"@react-native-firebase/app": "18.1.0",
"@react-native-firebase/auth": "18.1.0",
"@react-native-firebase/database": "18.1.0",
"@react-native-firebase/messaging": "18.1.0",
"react-native": "0.70.8"

"@react-native-firebase/app": "18.1.0",
"@react-native-firebase/auth": "18.1.0",
"@react-native-firebase/database": "18.1.0",
"@react-native-firebase/messaging": "18.1.0",
"react-native": "0.70.8"

The Firebase project suddenly not working i.e push notification and realtime database (rules write and read are true). Not error thrown whatsoever.
try {
console.log('fetching');

const snapshot = await database().ref(`/client/5`).once('value');
console.log('snapshot', snapshot.val());
} catch (error) {
console.log(error);
}

try {
console.log('fetching');

const snapshot = await database().ref(`/client/5`).once('value');
console.log('snapshot', snapshot.val());
} catch (error) {
console.log(error);
}

If I connect it to a new/different firebase project it works. Don't know what is causing the issue or where else to look. I have gone through google cloud console and I don't know where to look for possible cause.
I tried looking through google cloud console and I am lost as to I am not sure where to look to fix the issue.


Tags: javascript,firebase,react-native,firebase-realtime-databaseSource of the question:
https://stackoverflow.com/questions/79005421

Question and source license information:
https://meta.stackexchange.com/help/licensing
https://stackoverflow.com/
Ссылки и html тэги не поддерживаются


Комментарии: