-
Notifications
You must be signed in to change notification settings - Fork 444
Android application doesn't update firebase database #184
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
Comments
Hi @blackmr, could you post what your NSDatabaseService looks like? |
Hi, My NSDatabaseService:
nativescript/app/app.ts
Thank you for your effort... |
I'll update the wiki in moment but 2 things you should modify with your
Try that and lemme know. |
Hey Nathan, I'm working with @blackmr to extend your seed setup to our project. We have updated the code as your instructions, however we are still unable to identify why the android application would not update the firebase database. One thing that we forgot to mention is that the iOS application is able to update the firebase database. Even before the changes you suggested, the previous configuration was able to update to firebase. The Electron app for desktop also gives errors and we simply couldn't get it to work with the provided instructions of the wiki. (cannot find file dist/dev/node_modules/firebase/firebase.js) If I understand correctly both the iOS and Android apps use NSDatabaseService located in /nativescript/app/shared/core/services/database.service. I downloaded the google-services.json to see if it was a configuration issue but it didn't work. Firebase initializes successfully, but the subsequent keys created do not show up in the database. I know firebase is out of the scope of your seed but could you please guide us through error catching and maybe running an onComplete function on the response to monitor what response we receive from firebase? Thank you for your help. Best |
Hi, I guess firebase doesn't return a response. So 'callback' is not defined and 'if' conditional never gets invoked.
Thank you |
EddyVerbruggen/nativescript-plugin-firebase#58 This issue from the EddyVerburgen's plugin is describing the exact same issue regarding Android app not updating Firebase. I hope his approach might inspire a solution. However, after a while he concluded that it wasn't an issue about the plugin and I believe isn't actively working on the issue. |
Feel free to continue discussion here, just closing to cleanup outstanding issues. Any solution if found here could be posted to the wiki. |
Hi,
when i "npm start", everything works fine, when i open my browser, my projects home.component.ts starts to update and add 'counters' in my firebase database every 3 seconds. I can see updates in my console.firebase database.
When i "npm run start.android", it starts on my device and also an emulator without problem as i see.
After project successfully built,
My Terminal:
In every 3 seconds, it creates keys but I can't see any added counters on my console.firebase database and i dont see any errors that i can fix.
When i 'npm start' and then in another terminal 'npm run start.android',
From my android terminal, i can see the firebase database is updated by my web project add counter function, but my android application is not updating the firebase database.
My Android Terminal
Expected/desired behavior
How can i connect my both web and android device to my firebase database and make them update firebase database synchronously?
Thank you for this amazing project.
Kaan
The text was updated successfully, but these errors were encountered: