GithubHelp home page GithubHelp logo

Comments (7)

benwulfe avatar benwulfe commented on June 8, 2024

Hi -- would you be able to give a few more details on how the disconnect and reconnect is happening?
are you turning on airplane mode, calling GoOffline(), etc?

from quickstart-unity.

nikolaypogrebnoy avatar nikolaypogrebnoy commented on June 8, 2024

Hi, I'm using example from quickstart-unity-master\database\testapp. With some minor changes in UI.

I'm getting this issue only on android phone Lg G3, not on PC.

In one session I have a multiple disconnection and auto reconnection (screenshot attached). I do not call GoOffline(), the reason of this disconnection I beleive unstable Internet connection or some other thing related to internal library logic.

screenshot_2017-01-09-23-15-59

This code shows connect|disconnect events:

FirebaseDatabase.DefaultInstance.GetReference(".info/connected").ValueChanged += Chat_ValueChanged;

private void Chat_ValueChanged(object sender, ValueChangedEventArgs e)
{
    Debug.Log(e.Snapshot.Value);
...
}

It's work fine till I get exception from my first message.

After that auto reconnect does not work. Calling GoOnline() from code gives the same exception in log.

from quickstart-unity.

benwulfe avatar benwulfe commented on June 8, 2024

Have you logged in with someone with permissions to the database? What are your security rules?

Do you get this issue with the quickstart without any changes? (make your database temporarily open and run it on the Lg G3 with the original source code).

from quickstart-unity.

nikolaypogrebnoy avatar nikolaypogrebnoy commented on June 8, 2024

My DB rules:
{
"rules": {
".read": "auth == null",
".write": "auth == null",
"Rome": {
".indexOn": ["datetime"]
}
}
}
Let me try to get this error with the quickstart without any changes. Not sure that will be fast because this error very unstable. My app can work some time perfectly till I get this error.

from quickstart-unity.

stewartmiles avatar stewartmiles commented on June 8, 2024

Does this issue this occur with plugin 1.1.2 https://firebase.google.com/support/release-notes/unity#1.1.2 ?

from quickstart-unity.

stewartmiles avatar stewartmiles commented on June 8, 2024

We've extensively tested connection in 1.1.2 and 3.0.0, please check out the latest release https://firebase.google.com/support/release-notes/unity#3.0.0

from quickstart-unity.

mnasir41 avatar mnasir41 commented on June 8, 2024

".read": "auth == null",
".write": "auth == null",
You DB rules states that no authenticated user should access your DB..
Try these rules if you want DB accessible for everyone..
".read": "true",
".write": "true",

from quickstart-unity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.