Also right before I lose connection, an entry in the log states that my auth token has expired:
PersistentConnection: pc_0 - Auth token revoked: expired_token (Auth token is expired.)
FYI, im using Twitter and Facebook for my authentication and did not experience such issues with the previous Firebase SDK.
I created a new project (with simple auth and real time database) to see if the issue persists and it does.
Would anyone know what is causing the app to lose connection? So far the error has been experienced in 2 different projects with 2 auth providers (twitter and facebook) and only in the new SDK.
Code included in stackoverflow: https://stackoverflow.com/questions/37462087/losing-connection-with-firebase-database-after-updating-to-new-sdk
FirebaseOptions options = new FirebaseOptions.Builder()
.setServiceAccount(new FileInputStream("path/to/serviceAccountCredentials.json"))
.setDatabaseUrl("https://databaseName.firebaseio.com/")
.build();FirebaseApp.initializeApp(options);
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/546b0c52-1cf8-45d8-9c54-ea14a7888190%40googlegroups.com.
FirebaseDatabase.getInstance()..setLogLevel(Logger.Level.DEBUG);
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/361e7dfa-6463-4820-be10-619cb3cae7dd%40googlegroups.com.
D/PersistentConnection: pc_0 - Trying to fetch auth token
D/PersistentConnection: pc_0 - Error fetching token: An internal error has occured. [ Token Service API has not been used in project myproject-1186 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/securetoken.googleapis.com/overview?project=linxey-1186 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry. ]
D/PersistentConnection: pc_0 - Scheduling connection attempt
D/ConnectionRetryHelper: Scheduling retry in 2195ms
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/a6085eff-25bf-496f-a30d-518b12ff7eea%40googlegroups.com.
Hi JChris,I had assumed that your scenario is similar to the first post (lost connection after login with Twitter and Facebook), but later realized you were using server sdk. Server apps auth is a different issue and we are actively investigating that as well.Jin
On Thursday, June 2, 2016 at 1:12:19 PM UTC-7, Jean-Christophe SAKDAVONG wrote:It's the same as with me: They think it's an Android issue, when it's a server issue....
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/_0zd6dgliEU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/1b654300-2c1e-453b-b704-2dafceafb38f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Jean-Christophe SAKDAVONGMaître de Conférence en Informatique et Chercheur en Psychologie CognitiveCo-responsable du Master eFen à l'ESPE de Toulouse (E-Learning)Département de Mathématiques-InformatiqueLaboratoire Cognition, Langues, Langage, Ergonomie (CLLE-LTC)Maison de la RechercheUMR CNRS-UT2JJ 5263Axe "Rechercher, Apprendre, Décider"Spécialisé en E-Learning/Recherche d'aide/Dispositifs NTIC et compétences métacognitives
Université Toulouse Jean-Jaurès
5, Allée A. Machado
31058 Toulouse Cedex 1
Hi JChris,I had assumed that your scenario is similar to the first post (lost connection after login with Twitter and Facebook), but later realized you were using server sdk. Server apps auth is a different issue and we are actively investigating that as well.
Jin
On Thursday, June 2, 2016 at 1:12:19 PM UTC-7, Jean-Christophe SAKDAVONG wrote:
It's the same as with me: They think it's an Android issue, when it's a server issue....
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/_0zd6dgliEU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/1b654300-2c1e-453b-b704-2dafceafb38f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/1fed7d3b-97ea-480a-ba7e-e2c4e924e746%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAJCySteabfSmO8p6Op4GM-H-kkshx1kOWo-oNFMaS1K-UbX46Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/813D8E6D-E78B-4101-AB7A-93C5BC32D0EF%40rossillo.net.