firebase-realtime-database

Firebase realtime database .info/connected False when it should be True

给你一囗甜甜゛ 提交于 2020-07-09 08:33:45
问题 I have an Android service that calls this at onCreate : FirebaseDatabase database = FirebaseDatabase.getInstance(); database.getReference(".info/connected").addValueEventListener(new ValueEventListener() { @Override public void onDataChange(@NonNull DataSnapshot snapshot) { Log.d(TAG, "connected: " + snapshot.getValue(Boolean.class)); } @Override public void onCancelled(@NonNull DatabaseError error) { Log.w(TAG, "Failed to read value.", error.toException()); } }); I've noticed that when I do

GeoFire + Swift 3 can't stop observing

强颜欢笑 提交于 2020-07-09 06:40:45
问题 I'm using GeoFire and trying to fetch only 3 results that satisfy some conditions. This it my case and it doesn't stop observer. There are several thousands results and I get it all but I need only 3. I based on this answer but it does't work in my case as you can see. Please can somebody help? var newRefHandle: FIRDatabaseHandle? var gFCircleQuery: GFCircleQuery? func findFUsersInOnePath(location: CLLocation, radius: Int, indexPath: String, completion: @escaping () -> ()){ var ids = 0 let

RecyclerView addOnScrollListener with FirebaseRecyclerAdapter

亡梦爱人 提交于 2020-07-08 03:43:02
问题 I'm writing a program, where I'm fetching data from Firebase Database using FirebaseRecyclerAdapter I'm trying to implement a functionality to add 20 records on every scroll and to achieve same, I'm using: mDatabaseReference = FirebaseDatabase.getInstance().getReference().child("Users"); queryUsersData = mDatabaseReference.orderByChild("timestamp").limitToFirst(20); Now, the issue is I'm getting first 20 records, but on scroll I'm not getting next 20 records, as on every scroll, I want to get

RecyclerView addOnScrollListener with FirebaseRecyclerAdapter

左心房为你撑大大i 提交于 2020-07-08 03:42:55
问题 I'm writing a program, where I'm fetching data from Firebase Database using FirebaseRecyclerAdapter I'm trying to implement a functionality to add 20 records on every scroll and to achieve same, I'm using: mDatabaseReference = FirebaseDatabase.getInstance().getReference().child("Users"); queryUsersData = mDatabaseReference.orderByChild("timestamp").limitToFirst(20); Now, the issue is I'm getting first 20 records, but on scroll I'm not getting next 20 records, as on every scroll, I want to get

Why when i´m trying to write in Firebase Database I got this error? Related with FirebaseApp$IdTokenListener

安稳与你 提交于 2020-07-07 11:15:47
问题 I'm just trying to write a message in database, then I have this error when I run the app As I know I already added necesary dependencies in my gradle gradle at module level, I already added Firebase Core, Firebase database and so on: dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:28.0.0-rc02' implementation 'com.android.support:design:28.0.0-rc02' implementation 'com.android.support.constraint:constraint-layout:1.1.3'

Why when i´m trying to write in Firebase Database I got this error? Related with FirebaseApp$IdTokenListener

筅森魡賤 提交于 2020-07-07 11:14:07
问题 I'm just trying to write a message in database, then I have this error when I run the app As I know I already added necesary dependencies in my gradle gradle at module level, I already added Firebase Core, Firebase database and so on: dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:28.0.0-rc02' implementation 'com.android.support:design:28.0.0-rc02' implementation 'com.android.support.constraint:constraint-layout:1.1.3'

Permitting Firebase Xamarin RealTime Streaming

若如初见. 提交于 2020-07-07 10:00:13
问题 I am building a cross-platform application within Xamarin with realtime Firebase database integration. I am using the Firebase C# library FirebaseDatabase.net. Within the FibrebaseDatabase.net documentation, to enable real-time streaming it notes to call for example: var firebase = new FirebaseClient("https://dinosaur-facts.firebaseio.com/"); var observable = firebase .Child("dinosaurs") .AsObservable<Dinosaur>() .Subscribe(d => Console.WriteLine(d.Key)); However, in order to allow for

Permitting Firebase Xamarin RealTime Streaming

前提是你 提交于 2020-07-07 10:00:09
问题 I am building a cross-platform application within Xamarin with realtime Firebase database integration. I am using the Firebase C# library FirebaseDatabase.net. Within the FibrebaseDatabase.net documentation, to enable real-time streaming it notes to call for example: var firebase = new FirebaseClient("https://dinosaur-facts.firebaseio.com/"); var observable = firebase .Child("dinosaurs") .AsObservable<Dinosaur>() .Subscribe(d => Console.WriteLine(d.Key)); However, in order to allow for

Permitting Firebase Xamarin RealTime Streaming

ε祈祈猫儿з 提交于 2020-07-07 09:59:36
问题 I am building a cross-platform application within Xamarin with realtime Firebase database integration. I am using the Firebase C# library FirebaseDatabase.net. Within the FibrebaseDatabase.net documentation, to enable real-time streaming it notes to call for example: var firebase = new FirebaseClient("https://dinosaur-facts.firebaseio.com/"); var observable = firebase .Child("dinosaurs") .AsObservable<Dinosaur>() .Subscribe(d => Console.WriteLine(d.Key)); However, in order to allow for

Assemble a list of users with Geofire/Firebase

百般思念 提交于 2020-07-05 12:42:01
问题 I have a class called User, which has a function that gets all nearby food trucks using GeoFire. I've used an observeReadyWithBlock to take the truck IDs returned by GeoFire, and get the rest of their information using Firebase. However, when I go to access one of the trucks from my array of Truck objects after adding their name and description, it looks like xCode is telling me the array is empty. I am planning on using this array of nearby trucks in other controller classes, to populate