firebase-realtime-database

Simple firebase v3 data retrieval with angularfire v2

北战南征 提交于 2019-12-24 01:55:18
问题 Just started using firebase v3 (released roughly two weeks ago) with angularfire v2 (which according to this post fully supports firebase v3). But I am struggling to simply retrieve some data into an angular view. Here is the controller that simply returns user array and bind it to the view. It breaks on the line using $firebaseArray and says: TypeError: Object expected I am using AngularJs 1.5.6. Just to show the versions of firebase and angularfire I am using: <script src="https://cdn

Firebase on Android suddenly not working

隐身守侯 提交于 2019-12-24 01:55:06
问题 This person has a similar issue to me Firebase for android not working in my test device suddenly but it was never answered, and the people in the comments seem to have a similar issue. I can access (and update) values in my firebase using nodejs but when I try to do it from android, there are no failures in logcat or anything, it just does not update anything in the database. I checked the database reference and it's exactly the same as in my nodejs script, and my security settings are read:

How to apply multiple query in android firebase? [duplicate]

心已入冬 提交于 2019-12-24 01:54:33
问题 This question already has answers here : Query based on multiple where clauses in Firebase (4 answers) Closed 3 years ago . This is My Firebase database structure i want to get data like category = "cat" and level = "1" Here is my code Query query = firebaseReference.orderByChild("category").equalTo("cat1").limitToFirst(20); query.addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { UTILS.Log.e(TAG, "List Of User Count " +

Geofire Query in Firebase Cloud Function

与世无争的帅哥 提交于 2019-12-24 01:47:28
问题 Sorry for my english, I have a doubt it is possible to make a query geofire in Firebase Cloud Func, with their respective key_enter and key_exited, in order to maintain a list of the geographic points near my position ?, extracted from a few hundred thousand. Taking into account that all this happens when the user updates its geolocation in a node firebase realtime database, and this list of hundreds of thousands is reduced to a few near the position of the user 回答1: The following is a trick

How to convert String to CLLocationDegrees Swift 2

∥☆過路亽.° 提交于 2019-12-24 01:41:21
问题 I am trying to convert a String that I am retrieving from Firebase and adding it as several annotations on Google Maps. Unfortuanately, my app is crashing whenever it goes through the current code: ref = FIRDatabase.database().reference() ref.child("Locations").observeSingleEventOfType(.Value, withBlock: { (snapshot) in let lat = (snapshot.value!["Latitude"] as! NSString).doubleValue let lon = (snapshot.value!["Longitude"] as! NSString).doubleValue let complainLoc = CLLocationCoordinate2DMake

I have a gradle sync error JAVA_LETTER_OR_DIGIT when trying to add Firebase to my android project

不打扰是莪最后的温柔 提交于 2019-12-24 01:09:55
问题 When I added the dependencies as told in the firebase guide and sync the project ,I get the error JAVA__LETTER_OR_DIGIT .I work with MAC OS X Yosemite and my android studio version is 3.1.4 My app grade file apply plugin: 'com.android.application' android { compileSdkVersion 26 defaultConfig { applicationId "e.apple.mse_project" minSdkVersion 22 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release

Running in to troubles with Firebase integration into features

冷暖自知 提交于 2019-12-24 01:07:37
问题 I'm trying to implement firebase into a modular project but I'm running into problem referencing firebase in the feature. app.gradle apply plugin: 'com.android.application' android { compileSdkVersion 27 defaultConfig { applicationId "com.jd.feesie.app" minSdkVersion 23 targetSdkVersion 27 versionCode 1 versionName "0.0.1" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { api 'com.google

Running in to troubles with Firebase integration into features

℡╲_俬逩灬. 提交于 2019-12-24 01:03:26
问题 I'm trying to implement firebase into a modular project but I'm running into problem referencing firebase in the feature. app.gradle apply plugin: 'com.android.application' android { compileSdkVersion 27 defaultConfig { applicationId "com.jd.feesie.app" minSdkVersion 23 targetSdkVersion 27 versionCode 1 versionName "0.0.1" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { api 'com.google

Cannot import Firebase sdk in Swift app

て烟熏妆下的殇ゞ 提交于 2019-12-24 00:59:23
问题 I have developed demo ios application where I need to integrate Firebase , so I had followed the Raywenderlitch tutorials for how to integrate the Firebase SDKs in iOS who written by @David East. After I had installed the Firebase SDKs via cocoapods , when I try to command-click on the import statement of Firebase in AppDelegate.swift (import Firebase) file, xcode goes to the following view. For more information please find the below screenshot. Please find the below Podfile : platform :ios,

Firebase 3, AngularFire 2 in Ionic app data not updating real time / live update (with Video demo)

余生长醉 提交于 2019-12-24 00:57:55
问题 Firebase is known for its real-time data update, so this is a weird one for me. I am using Firebase 3 (New firebase console app. Want to add authentication later) and AngularFire 2. I started the app using Ionic's tab template so the app.js' router config should be the same. Click here to see a (90 second) video demo of the issue I have my ionic app served to the browser using 'ionic serve --lab' so I can see iOS and Android view. When I try to toggle data in one view (say iOS), the changes