Comments (7)
I have solved the mistery! The reason was, of course, my stupidity :D In my defense, the migration docs are still not finished. After I have updated emberfire
and launched the app, the first screen was login screen. No requests had to be made to the realtime database at this point, that is why in dev console I did not see any connection to Firebase over a Web Socket. And I was unable to log in, becase in [email protected]
authentication must be done differently. In the end, I have used https://github.com/simplabs/ember-simple-auth
from emberfire.
The dummy app in our tests is functional, using CLI 3.13; I haven't tested 3.4 with the latest release candidate. Can you provide more details on the troubles?
from emberfire.
Thank you for your response and for your help. What kind of details would be helpful? I have tried updating the NPM package with npm i emberfire@next
, which installed the latest release candidate rc6. I then replaced code in app/adapters/application.js
with:
import RealtimeDatabaseAdapter from 'emberfire/adapters/realtime-database';
export default RealtimeDatabaseAdapter.extend({
});
The configuration in ENV.firebase
worked with emberfire v2, so I didn't change anything there. When I launch the app after these updates, basically nothing happens, there are no warnings neither in terminal output or Chrome console; Chrome inspector shows no attempts to establish WS connection to Firebase. I have tried this with currently installed Ember v3.4 (that is max version I can use in production, because emberfire v2 won't work with Ember 3.5), I have also tried updating Ember to 3.11 (using ember-cli-update, I think I've read somewhere on this issue board that it might help; it didn't).
Again, I am very sorry to bother you with my problem. I would greatly appreciate any thoughts from you, what might I be doing wrong?
from emberfire.
@maxymczech are you able to share more details? I just upgraded to 3.0.0-rcX and my torii installation did not work. I am attempting to switch to ember-simple-auth but the app is not loading on start up.
from emberfire.
This is basically the code I am using in app/components/login-form.js
to authenticate the user:
import Component from '@ember/component';
import { inject as service } from '@ember/service';
export default Component.extend({
firebaseApp: service(),
submit() {
this.get('firebaseApp').auth().then(auth => {
auth.signInWithEmailAndPassword(this.email, this.password).then(async data => {
//...
}, error => {
//...
})
});
return false;
}
});
from emberfire.
Thanks for sharing and taking the time to reply. Did you use ember simple Auth, or just the native firebase sdk?
from emberfire.
Neither native firebase SDK nor Torii worked for me either. But simple auth did.
Ember 3.24.3
Ember Simple Auth 3.1.0
EmberFire 3.0.0-rc.6
Firebase 7.20.0
from emberfire.
Related Issues (20)
- This seems to throw an error HOT 2
- Realtime: how to subscribe to multiple documents HOT 15
- Steps for local-setup lead to non-functional dummy app HOT 2
- store.queryRecord broken with query-only HOT 2
- Type Error: firebase-app.ts HOT 2
- Realtime Updates not working HOT 8
- fastboot, ember simple auth and emberfire dont work each other HOT 2
- error querying firestore in fastboot mode HOT 1
- Firestore adapter reference options order
- Emberfire v3 bug in the firestore adapter
- Bug in firestore: Cannot read property 'replace' of undefined HOT 5
- Using `include` in findRecord throws error HOT 1
- subcollections implemented in a way that prevents multiple hasmany relationships with the same model
- FirestoreAdapter Error while processing route: index the adapter could not find the resource HOT 2
- Session.isAuthenticated is not getting updated? HOT 5
- adapter.fetch is not a function when using TORII for Auth in 3.0.0-rc6 HOT 1
- Potential Security Issue
- @jamesdaniels, please consider ember-adopted-addons program HOT 1
- For Anyone Struggling with hasMany relationships with Firestore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emberfire.