rest-firebase

Firebase one to one chat

吃可爱长大的小学妹 提交于 2019-12-21 16:48:12
问题 I am building a simple chat application in android with Firebase as backend. ref3.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(DataSnapshot snapshot) { Map<String, Object> users = (Map<String, Object>) snapshot.getValue(); System.out.println(users.values().toString()); Set s = users.entrySet(); Iterator itr = s.iterator(); while (itr.hasNext()) { Map.Entry m = (Map.Entry) itr.next(); m.getKey(); String myval = m.getValue().toString(); String spmyval[] =

Export firebase

南笙酒味 提交于 2019-12-21 07:55:34
问题 I was wondering if it is possible to export firebase data (perhaps as a JSON object) in frequent "cycles". The main reason I'm asking this is because I would like to capture the data at specific points of time in order to perform a range of analytics upon them / identify specific patterns. I'm interested in any operations / methods that are part of the Firebase API - maybe some kind of web hook, or other workarounds that would enable me to do this! Any suggestions would be greatly appreciated

Firebase one to one chat

断了今生、忘了曾经 提交于 2019-12-04 07:19:13
I am building a simple chat application in android with Firebase as backend. ref3.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(DataSnapshot snapshot) { Map<String, Object> users = (Map<String, Object>) snapshot.getValue(); System.out.println(users.values().toString()); Set s = users.entrySet(); Iterator itr = s.iterator(); while (itr.hasNext()) { Map.Entry m = (Map.Entry) itr.next(); m.getKey(); String myval = m.getValue().toString(); String spmyval[] = myval.split(", "); System.out.println(spmyval[0] + " <-sp0 sp1-> " + spmyval[1]); list=new ArrayList();

firebase rules not working

时光毁灭记忆、已成空白 提交于 2019-11-29 16:28:50
I'm following the Firebase security tutorial . I have this simple structure: - requests - request_id: {...} - request_id: {...} ... And my security rules: { "rules": { "requests": { ".indexOn": ["id_company_owner", "id_app_user"], "$request_id": { // only request from the last ten minutes can be read ".read": "data.child('timestamp').val() > (now - 600000)", } } } } All I want right now with my rule is to make my request readable. But I've to this inside (not outside) of $request_id, but no request is being readable; even if the request have the timestamp with less than 10 minutes ago. Can

Where does firebase save it's simple login users?

筅森魡賤 提交于 2019-11-28 12:05:30
I am currently using firebase to make an ionic app . I am using firebase simple login for social auth ( facebook, twitter, email & password ). The auth works perfectly, it $broadcasts the authed user . However it doesn't seem to create a user in the actual firebase db . I was wondering how I can get the users that have been authed using my app . Thanks, you help is greatly appreciated :). For most of the authentication protocols it supports, Firebase doesn't store user data anywhere. Even for the protocols where it does store data (I only know of email+password doing this), it stores this

firebase rules not working

戏子无情 提交于 2019-11-28 11:53:52
问题 I'm following the Firebase security tutorial. I have this simple structure: - requests - request_id: {...} - request_id: {...} ... And my security rules: { "rules": { "requests": { ".indexOn": ["id_company_owner", "id_app_user"], "$request_id": { // only request from the last ten minutes can be read ".read": "data.child('timestamp').val() > (now - 600000)", } } } } All I want right now with my rule is to make my request readable. But I've to this inside (not outside) of $request_id, but no

Where does firebase save it's simple login users?

人走茶凉 提交于 2019-11-27 06:52:16
问题 I am currently using firebase to make an ionic app . I am using firebase simple login for social auth ( facebook, twitter, email & password ). The auth works perfectly, it $broadcasts the authed user . However it doesn't seem to create a user in the actual firebase db . I was wondering how I can get the users that have been authed using my app . Thanks, you help is greatly appreciated :). 回答1: For most of the authentication protocols it supports, Firebase doesn't store user data anywhere.