firebase-realtime-database

Upload Eureka form data to firebase

杀马特。学长 韩版系。学妹 提交于 2020-01-01 19:05:12
问题 I have a user profile that is an Eureka form view. In this space, users can update their profile. If the user clicks 'Save' it calls this function. func saveProfileSettings(){ let userID = user?.uid let formatter = DateFormatter() formatter.dateFormat = "yyyy-MM-dd" let PROFILE_DISPLAY_NAME_REF: NameRow? = form.rowBy(tag: Constants.PROFILE_DISPLAY_NAME) let PROFILE_DISPLAY_NAME = PROFILE_DISPLAY_NAME_REF?.value let PROFILE_EMAIL_REF: EmailRow? = form.rowBy(tag: Constants.PROFILE_EMAIL) let

How can I observe Firebase child value changes in multiple nodes in Swift?

自古美人都是妖i 提交于 2020-01-01 18:52:10
问题 I have a "users" node in my Firebase database. Each user in it has a root with a uid for it. One of the properties of each user is "coordinates". I want to observe any change in any of those coordinates for all users. I almost need something like: usersDatabaseReference.child("*").child("coordinates").observe(.value, with: { (snapshot) in My structure looks like this: users abcdefghijklmnop coordinates: "12.345,12.345" other props qrstuvwxyz coordinates: "34.567,34.567" other props So I'm

How can I observe Firebase child value changes in multiple nodes in Swift?

独自空忆成欢 提交于 2020-01-01 18:52:08
问题 I have a "users" node in my Firebase database. Each user in it has a root with a uid for it. One of the properties of each user is "coordinates". I want to observe any change in any of those coordinates for all users. I almost need something like: usersDatabaseReference.child("*").child("coordinates").observe(.value, with: { (snapshot) in My structure looks like this: users abcdefghijklmnop coordinates: "12.345,12.345" other props qrstuvwxyz coordinates: "34.567,34.567" other props So I'm

NoSuchMethodError: While integrating Firebase with app engine app

ⅰ亾dé卋堺 提交于 2020-01-01 12:31:07
问题 I was trying to integrate firebase real time database with google app engine app. I was getting this error when calling > DatabaseReference ref = FirebaseDatabase > .getInstance() > .getReference("todoItems"); Stacktrace is 03:21:01.450 Error for /productSync java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;)V at com.google.firebase.FirebaseApp.checkNotDeleted(FirebaseApp.java:314) at com.google.firebase.FirebaseApp.getOptions

FirebaseListObservable becomes Observable after query

♀尐吖头ヾ 提交于 2020-01-01 12:12:32
问题 I made a small app on firebase. I have been using a type provided by angularfire called a FirebaseListObservable which allows you to observe changes to your data. The problem I'm having is that Angularfire also provides a way to query the data, by attaching / passing in a query object to the request. The following returns a FirebaseListObservable. this.resources$ = <FirebaseListObservable<IResource[]>> this.af.list(`/resources/${this.auth.id}`) as FirebaseListObservable<IResource[]>; //This

How to implement Infinite Scrolling using Node.js, Angular.js and Firebase?

懵懂的女人 提交于 2020-01-01 09:43:52
问题 UPDATE 8: CODE: <% include ../partials/header %> <script src="https://www.gstatic.com/firebasejs/3.5.2/firebase.js"></script> <script src="https://cdn.firebase.com/libs/firebase-util/0.2.5/firebase-util.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.2/angular.js"></script> <script src="https://cdn.firebase.com/libs/angularfire/1.1.4/angularfire.min.js"></script> <script> var config = { info }; firebase.initializeApp(config); var fb = firebase.database()

firebase & swift - this class is not key value coding-compliant for the key -----

坚强是说给别人听的谎言 提交于 2020-01-01 09:14:32
问题 I know there are other questions like this but I think my problem is with how I'm accessing firebase and not an outlet because my error is in an @IBAction function that is able to be called before the error happens. @IBAction func sign_in_out_tapped(sender : UIButton) { if let op_user = user { if (op_user.user_ref?.valueForKey("current_status"))! as! String == "OUT" { let sign_in_time = NSDate() op_user.user_ref?.childByAppendingPath("logins").updateChildValues([String(op_user.user_ref?

firebase & swift - this class is not key value coding-compliant for the key -----

旧时模样 提交于 2020-01-01 09:14:28
问题 I know there are other questions like this but I think my problem is with how I'm accessing firebase and not an outlet because my error is in an @IBAction function that is able to be called before the error happens. @IBAction func sign_in_out_tapped(sender : UIButton) { if let op_user = user { if (op_user.user_ref?.valueForKey("current_status"))! as! String == "OUT" { let sign_in_time = NSDate() op_user.user_ref?.childByAppendingPath("logins").updateChildValues([String(op_user.user_ref?

Firebase + React Native: Offline authentication

房东的猫 提交于 2020-01-01 09:04:14
问题 I'm using Firebase in a React Native iOS app, mainly for storing user data and user authentication, which works great when a device actually has a working network connection . When it comes to Firebase's offline capabilities, it looks like this: The problem: Users launching app without network connectivity can't do anything because they're never being logged in Here are the steps to reproduce this behaviour: Step 1: Logged-out user launches app with network connectivity user clicks "Facebook

Push Notifications with Firebase and OneSignal

旧时模样 提交于 2020-01-01 06:37:08
问题 I'm looking for some guidance. I'm using Firebase as the backend server for an app I'm building and I would like to alert users when somebody has either liked or disliked some content the user generated. I understand that Firebase offers cloud messaging through which I can target very specific users and send updates to them; I have implemented that functionality. However, I would like to send updates based on changes in the database, and, as far as I understand, FCM is not built for this