Firebase queryorderedbykey()。观察后面的代理

时间:2016-12-07 08:03:22

标签: ios firebase proxy firebase-realtime-database

我在公司工作,有一些代理安全策略。

我在firebase中的某个节点上设置了一个更改观察器。见下面的代码

func connectObserver(_ base_url:String) {

    fireBaseRefAppSettings = FIRDatabase.database().reference(fromURL: "\(base_url)")

    firebaseQueryHandler = fireBaseRefJamesAppSettings!.queryOrderedByKey().observe(.value, with: {
        snapshot in


        print("in queryOrderedByKey observe block"); // its not printing . I have set breakpoints here also. It looks its not coming inside this block.

        // I have checked this without proxy , its working fine.
        // My question is, What I have to do to work this behind the proxy

        if let jamesapp_settings_raw_data = snapshot.value as? NSDictionary{
           print("jamesapp_settings_raw_data \(jamesapp_settings_raw_data)")
        }

   }

}

我也看到了问题Firebase notification not received behind proxy

  • 我的下一步是打开firebase docs推荐的端口,即5228,5229和5230,让我们看看这个有用吗

如果您有任何相关信息。请做评论和回答

由于

更新1

我对我们的IT管理员说,他打开了端口5228,5229和5230,但它仍然没有进入我上面提到的代码块。 :(

0 个答案:

没有答案
相关问题