firebase / firebase-js-sdk

Firebase Javascript SDK
https://firebase.google.com/docs/web/setup
Other
4.82k stars 885 forks source link

Polymer 3 and RXFire #1298

Closed halloweenman closed 4 years ago

halloweenman commented 5 years ago

Given that PolymerFire is not supported for use with Polymer 3 it would make sense to have some use examples for using RXFire with Polymer 3. Most important are Firebase Initialization. User Authentication, including sign in and sign out, and reading and writing data to Firestore and Realtime Database. Perhaps using something like the Polymer 3 Starter Kit.

I'm struggling to find anything. Plenty of info and examples for Angular but nothing for Polymer 3. It's extremely frustrating given Firebase, Angular, and Polymer are all in the Google camp. Google sort it out and support and resource Polymer 3 properly please.

google-oss-bot commented 5 years ago

I found a few problems with this issue:

derhuebiii commented 5 years ago

Agreed, I started my project with Polymer 1 and Firebase (as it was pushed like this a lot). Would be nice to have the support ongoing to be able to stay with Polymer nad Firebase.

I even waited a long time to move to Polymer 3 but it looks like we are left alone a bit :/

mmikrut commented 5 years ago

same here. Extremely frustrated right now trying to convert Polymer2 + polymerfire to polymer3, no help, we were promised great tool and then left alone in the wild to fend for ourselves not impressed

MarcusGV commented 5 years ago

Someone has an example with RXFire and Polymer 3 or litelement? please that could help a lot :(

derhuebiii commented 5 years ago

@mmikrut @MarcusGV I made a very basic implementation (it is more a quick&dirty hack yet) without rxfire but it works for my project. You are welcome to use it or even better let's work on it to improve it. I am happy to give you more rights to the repository if you are interested. I never created a git rep so please be patient ;)

https://github.com/derhuebiii/polymer3-firebase

MarcusGV commented 5 years ago

Thank you very much, of course I will check it, Its hard to find examples with this :), thanks again

rommelpe commented 4 years ago

Hey folks, I was able to incorporate Firebase using this Polymer 3.0 Get Started guide repo. Here's the workaround steps to be able to initialize Firebase services.

If you happen to encounter a Firestore timestampsInSnapshots error message, get rid of this code below in step 2:

const settings = {
  timestampsInSnapshots: true,
};

firestore.settings(settings);

I haven't tried to import RxFire yet, feel free to test it out.

google-oss-bot commented 4 years ago

Hey @stucker71. We need more information to resolve this issue but there hasn't been an update in 7 days. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot commented 4 years ago

Since there haven't been any recent updates here, I am going to close this issue.

@stucker71 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.