Comments (7)
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.
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.
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.
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.
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.
Does this issue this occur with plugin 1.1.2 https://firebase.google.com/support/release-notes/unity#1.1.2 ?
from quickstart-unity.
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.
".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)
- The updated SDK seems to have solved the connection issue! Much appreciated HOT 1
- Android: Push notification messages are not received when the application is closed! HOT 3
- FirebaseMessaging.MessageReceived triggers multiple times on receiving single push notification HOT 9
- Generation of the Firebase Android Resource File Failing Again HOT 3
- Coding Rules are not there! HOT 2
- Cloud functions not working with Quickstart project HOT 2
- corrupted com.google.firebase.firebase-messaging-unity-***.aar HOT 2
- [Bug] "FirebaseMessaging.RequestPermissionAsync()" is incorrect. HOT 1
- User Property values coming in late
- Cannot upload debug symbols for Android to crashlytics HOT 1
- How to change Dependencies download destination path? HOT 1
- Unity Firebase App works in editor but not in build HOT 1
- Newbie - Guidance Needed About Firebase Projects Management (On Firebase Dashboard) HOT 1
- Crash on iPhone 6 on iOS 12 with Realtime Database HOT 2
- Targeting iOS version numbers requires upgrading to SDK version 6.24.0 or later
- When proper Firestore Unity support? HOT 2
- Unity [FirebaseCore][I-COR000003] The default Firebase app has not yet been configured. HOT 1
- messaging/testapp not working HOT 3
- Cloud Messaging / build problems HOT 5
- GetValueAsync() in Realtime Database often enters infinite wait HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickstart-unity.