Skip to content
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

Firebase realtime database connect error #55

Open
asifmrony opened this issue Oct 10, 2023 · 0 comments
Open

Firebase realtime database connect error #55

asifmrony opened this issue Oct 10, 2023 · 0 comments

Comments

@asifmrony
Copy link

Describe the bug
I am trying to connect to firebase realtime database from tizen web application and fetch data from there. but, unable to connect. It shows nothing when trying to read data via firebaseApp.database().ref('my table')

To Reproduce
Steps to reproduce the behavior:

  1. Add "https://www.gstatic.com/firebasejs/10.4.0/firebase-app-compat.js" and "https://www.gstatic.com/firebasejs/10.4.0/firebase-database-compat.js" sequentially in index.html file in main directory
  2. Create a new script below and import you firbase project config.
  3. then var firebaseApp = firebase.initializeApp(firebaseConfig);
  4. then var db = firebaseApp.database();
  5. then var dbRef = db.ref('my table');
  6. finally dbRef.get().then((snapshot) => { if (snapshot.exists()) { console.log(snapshot.val()); } else { console.log("No data available"); } });

Expected behavior
A list of data from Firebase database should populate in console

System information

  • OS: WIndows 10
  • IDE: Tizen Studio 5.1
  • Simulator: Tizen Web Simulator Application (Samsung TV) - tv extension 7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants