我想知道是否可以在频繁的"周期"中导出firebase数据(可能作为JSON对象).我问这个的主要原因是因为我想在特定时间点捕获数据,以便对它们执行一系列分析/识别特定模式.我对作为Firebase API一部分的任何操作/方法感兴趣 - 可能是某种Web挂钩,或其他可以让我这样做的解决方法!
任何建议都会非常感激,因为我在网络/文档上找不到任何东西(也许我已经阅读了它?).
谢谢,亚历克斯
我目前使用firebase作出ionic app.我使用firebase simple login的social auth(facebook, twitter, email & password).认证工作完美,它$broadcasts是authed user.但是它似乎并没有在实际中创建用户firebase db.我想知道如何让那些一直authed使用我的用户app.谢谢,非常感谢你的帮助:).
我有一个带有分支的firebase数据库,例如:
/Customers/{CustomerID}/{CustomerName}
                        {CustomerAddress}
/Contacts/{CustomerID}/{contactID}/{ContactName}
                                   {contactPhone}
                                   {contactEmail}
/sampleout/{customerId}/{sampleoutID}/.....
other Data including the customer name, contact etc etc that is kept above.
Run Code Online (Sandbox Code Playgroud)
我正在寻找引用客户和联系信息的最佳方式:1)在FB树中存储两次.2)进行2次或更多次阅读.
因此,我希望能够读取/ sampleOut树,并且当它读取说示sampleID 1并且它指向给定客户时,它也会拾取该客户对象,而不必在我的代码中创建"读取"调用.
我正在使用Firebase作为后端在android中构建一个简单的聊天应用程序.
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();
                    a1 = spmyval[0].split("=");
                    Cursor cur = getContentResolver().query(
                            ContactsContract.Contacts.CONTENT_URI, null, null, null, null);
                    if (cur.getCount() > 0) {
                        while (cur.moveToNext()) {
                            // read id
                            String id = …Run Code Online (Sandbox Code Playgroud)