امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبVote count: 0I am developing an app in which the users can have multiple lists. My Firebase database looks like this:The model that i use is this:public class UserModel { private String userId; private String userName; private String userEmail; private HashMap lists;...
ادامه مطلبVote count: 0 What I am trying to do: I want to output all of the books in the book node on my home page. What I need is an array of objects that contain all of the books in the book node so that I can loop through them using the ng-repeat directive in AngularJs. In the code below, when I console log the data, I get an object of objects, which caot be used with ng-repeat. Another issue that I am having is when I try to output the $scope.allBooks variable on to the page, nothing appears. Can anyone help me with this? // Main Controller firebase.database().ref('books').on('value', function(snapshot) { var data = snapshot.val(); $scope.allBooks = data; console.log(data); }); // Book Node in Fir...
ادامه مطلبVote count: 0 I am trying to save my registered data to Firebase but get a "Caot convert value of type 'user' to expected argument type 'AnyObject?'" error. I tried many things but I can't seem to figure it out...can someone help me please? how do it save it? import UIKit import Firebase import FirebaseDatabaseUI class EventViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate { //outlets for text & image @IBOutlet weak var photoImageView: UIImageView! @IBOutlet weak var eventName: UITextField! @IBOutlet weak var eventDate: UITextField! @IBOutlet weak var eventDes: UITextView! //Database coection let rootref = FIRDatabase().reference() var imagePic...
ادامه مطلبVote count: 0 I have an extended question to this question. What if the player belong to more than one team? I have this json "Players" : { "-YRHd4IjrjsBXx__B" : { "name" : "The best forward", "creationDate" : "2016-02-26 15:50:39", "teams" : { "-KAByPeIz4IjrjsBXx__B" : true, "-KEFPuCXcqOah_GJwsMCu" : true, "-KEwuQxvGpYTEJ7YQ58-l" : true, "-KKF8vPtf8J7cfqFh2PLm" : true }, }, etc... } players-service.js getPlayers: function(teamid) { var Players = {}; var teamsIndex = ref.child('teams/' + teamid + '/players/'); var playersIndex = ref.child('players/'); teamsIndex.on('child_added', function(snapshot) { var playerKey = snapshot.key; playersIndex.child(playerKey).on('value', function(playersnap)...
ادامه مطلبVote count: 0 05-25 12:29:53.536 4506-4506/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.thegads.uliza, PID: 4506 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.thegads.uliza/com.thegads.uliza.MainActivity}: com.google.firebase.database.DatabaseException: No properties to serialize found on class com.thegads.uliza.model.User at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.j...
ادامه مطلبVote count: 0 In firebase is it possible to get data from a node in order of when the row was added? I have a list of profiles that was added to my profiles node and I need to get the in order of when they was added to the database. Is this possible. Im using angular2, typescript and firebase for my app. I've been reading this: https://www.firebase.com/docs/web/guide/retrieving-data.html#section-ordered-data but not sure how if its possible to do what I need. asked 29 secs agoAngularM This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلب