When I am logged I get int a loop W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Data science time! April 2019 and salary with experience Should we burninate the [wrap] tag? The Ask Question Wizard is Live!MediaPlayer error when trying to play from listW/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned GmsCouldn't register a user on Firebase androidI can not access databaseandroid app is closing after sign-out methodAndroid refuses to trust Security certificateabout creating a dynamic list view with retrieving from firebase android studioFlutter app is crashing when trying to creating account with email and passwordFirebaseAuth: getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@489FirebaseAuth: getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@9cd3393
What is the logic behind the Maharil's explanation of why we don't say שעשה ניסים on Pesach?
Why is "Consequences inflicted." not a sentence?
Why aren't air breathing engines used as small first stages
The logistics of corpse disposal
ListPlot join points by nearest neighbor rather than order
Book where humans were engineered with genes from animal species to survive hostile planets
When were vectors invented?
How do I stop a creek from eroding my steep embankment?
How can I make names more distinctive without making them longer?
What exactly is a "Meth" in Altered Carbon?
Apollo command module space walk?
Why did the IBM 650 use bi-quinary?
Can a non-EU citizen traveling with me come with me through the EU passport line?
Is it fair for a professor to grade us on the possession of past papers?
How come Sam didn't become Lord of Horn Hill?
Seeking colloquialism for “just because”
Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?
How does the particle を relate to the verb 行く in the structure「A を + B に行く」?
Coloring maths inside a tcolorbox
Using et al. for a last / senior author rather than for a first author
What LEGO pieces have "real-world" functionality?
Why did the rest of the Eastern Bloc not invade Yugoslavia?
Storing hydrofluoric acid before the invention of plastics
Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?
When I am logged I get int a loop W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Data science time! April 2019 and salary with experience
Should we burninate the [wrap] tag?
The Ask Question Wizard is Live!MediaPlayer error when trying to play from listW/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned GmsCouldn't register a user on Firebase androidI can not access databaseandroid app is closing after sign-out methodAndroid refuses to trust Security certificateabout creating a dynamic list view with retrieving from firebase android studioFlutter app is crashing when trying to creating account with email and passwordFirebaseAuth: getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@489FirebaseAuth: getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@9cd3393
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have a problem with Firebase Authentication,
if I am logged in I get into a loop that causes me problems.
When I enter this loop, the connection to the Firebase Database is also blocked
I don't know if it can depend on the versions of the dependencies, I put the latest versions.
The errors from the console are these, they arrive continuously:
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
this is more complete:
D/FA: Logging event (FE): screen_view(_vs), Bundle[firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-8001407550778259391]
I/Transaction: runTransaction() usage detected while persistence is enabled. Please be aware that transactions *will not* be persisted across database restarts. See https://www.firebase.com/docs/android/guide/offline-capabilities.html#section-handling-transactions-offline for more details.
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
D/: HostConnection::get() New Host Connection established 0x9ebc9a40, tid 11532
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
Activity resumed, time: 173786466
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
D/: HostConnection::get() New Host Connection established 0xa15e8100, tid 11578
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
I/art: Do partial code cache collection, code=29KB, data=31KB
I/art: After code cache collection, code=29KB, data=31KB
Increasing code cache capacity to 128KB
D/EGL_emulation: eglCreateContext: 0x9ce34aa0: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0x9ce34aa0: ver 2 0 (tinfo 0x9ce366f0)
W/art: Before Android 4.1, method int android.support.v7.widget.DropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
D/EGL_emulation: eglMakeCurrent: 0x9ce34aa0: ver 2 0 (tinfo 0x9ce366f0)
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 4
I/art: Do partial code cache collection, code=49KB, data=59KB
I/art: After code cache collection, code=41KB, data=55KB
I/art: Increasing code cache capacity to 256KB
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
V/FA: Inactivity, disconnecting from the service
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
The problem does not seem to be born immediately, but after some time I open and close the app, and I have the impression that it only happens when I remain logged in when the app starts, but I'm not sure.
The code where the error comes from I think is this:
public void checkCurrentUser()
// [START check_current_user]
NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
// get menu from navigationView
Menu menu = navigationView.getMenu();
FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
if (user != null)
// User is signed in
menu.findItem(R.id.edit_login).setVisible(false);
menu.findItem(R.id.edit_logout).setVisible(true);
if (LoginAmministratore.seiAmministratore(user.getEmail()))
menu.findItem(R.id.edit_notizia).setVisible(true);
menu.findItem(R.id.edit_squadra).setVisible(true);
menu.findItem(R.id.edit_giocatore).setVisible(true);
menu.findItem(R.id.edit_calendario).setVisible(true);
else
menu.findItem(R.id.edit_notizia).setVisible(false);
menu.findItem(R.id.edit_squadra).setVisible(false);
menu.findItem(R.id.edit_giocatore).setVisible(false);
menu.findItem(R.id.edit_calendario).setVisible(false);
else
// No user is signed in
menu.findItem(R.id.edit_login).setVisible(true);
menu.findItem(R.id.edit_logout).setVisible(false);
menu.findItem(R.id.edit_notizia).setVisible(false);
menu.findItem(R.id.edit_squadra).setVisible(false);
menu.findItem(R.id.edit_giocatore).setVisible(false);
menu.findItem(R.id.edit_calendario).setVisible(false);
// [END check_current_user]
The dependencies are these:
dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-basement:16.2.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.google.firebase:firebase-database:16.1.0'
//implementation 'com.google.firebase:firebase-firestore:18.1.0'
implementation 'com.google.firebase:firebase-storage:16.1.0'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.google.firebase:firebase-messaging:17.4.0'
implementation 'com.firebaseui:firebase-ui-auth:4.3.1'
implementation 'com.android.support:support-v4:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
def room_version = "1.1.1"
implementation "android.arch.persistence.room:runtime:$room_version"
annotationProcessor "android.arch.persistence.room:compiler:$room_version"
// https://github.com/bumptech/glide
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
// https://www.joda.org/joda-time/
implementation 'joda-time:joda-time:2.10.1'
// trova memory leak
// https://github.com/square/leakcanary
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
// Optional, if you use support library fragments:
debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.3'
apply plugin: 'com.google.gms.google-services'

add a comment |
I have a problem with Firebase Authentication,
if I am logged in I get into a loop that causes me problems.
When I enter this loop, the connection to the Firebase Database is also blocked
I don't know if it can depend on the versions of the dependencies, I put the latest versions.
The errors from the console are these, they arrive continuously:
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
this is more complete:
D/FA: Logging event (FE): screen_view(_vs), Bundle[firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-8001407550778259391]
I/Transaction: runTransaction() usage detected while persistence is enabled. Please be aware that transactions *will not* be persisted across database restarts. See https://www.firebase.com/docs/android/guide/offline-capabilities.html#section-handling-transactions-offline for more details.
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
D/: HostConnection::get() New Host Connection established 0x9ebc9a40, tid 11532
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
Activity resumed, time: 173786466
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
D/: HostConnection::get() New Host Connection established 0xa15e8100, tid 11578
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
I/art: Do partial code cache collection, code=29KB, data=31KB
I/art: After code cache collection, code=29KB, data=31KB
Increasing code cache capacity to 128KB
D/EGL_emulation: eglCreateContext: 0x9ce34aa0: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0x9ce34aa0: ver 2 0 (tinfo 0x9ce366f0)
W/art: Before Android 4.1, method int android.support.v7.widget.DropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
D/EGL_emulation: eglMakeCurrent: 0x9ce34aa0: ver 2 0 (tinfo 0x9ce366f0)
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 4
I/art: Do partial code cache collection, code=49KB, data=59KB
I/art: After code cache collection, code=41KB, data=55KB
I/art: Increasing code cache capacity to 256KB
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
V/FA: Inactivity, disconnecting from the service
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
The problem does not seem to be born immediately, but after some time I open and close the app, and I have the impression that it only happens when I remain logged in when the app starts, but I'm not sure.
The code where the error comes from I think is this:
public void checkCurrentUser()
// [START check_current_user]
NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
// get menu from navigationView
Menu menu = navigationView.getMenu();
FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
if (user != null)
// User is signed in
menu.findItem(R.id.edit_login).setVisible(false);
menu.findItem(R.id.edit_logout).setVisible(true);
if (LoginAmministratore.seiAmministratore(user.getEmail()))
menu.findItem(R.id.edit_notizia).setVisible(true);
menu.findItem(R.id.edit_squadra).setVisible(true);
menu.findItem(R.id.edit_giocatore).setVisible(true);
menu.findItem(R.id.edit_calendario).setVisible(true);
else
menu.findItem(R.id.edit_notizia).setVisible(false);
menu.findItem(R.id.edit_squadra).setVisible(false);
menu.findItem(R.id.edit_giocatore).setVisible(false);
menu.findItem(R.id.edit_calendario).setVisible(false);
else
// No user is signed in
menu.findItem(R.id.edit_login).setVisible(true);
menu.findItem(R.id.edit_logout).setVisible(false);
menu.findItem(R.id.edit_notizia).setVisible(false);
menu.findItem(R.id.edit_squadra).setVisible(false);
menu.findItem(R.id.edit_giocatore).setVisible(false);
menu.findItem(R.id.edit_calendario).setVisible(false);
// [END check_current_user]
The dependencies are these:
dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-basement:16.2.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.google.firebase:firebase-database:16.1.0'
//implementation 'com.google.firebase:firebase-firestore:18.1.0'
implementation 'com.google.firebase:firebase-storage:16.1.0'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.google.firebase:firebase-messaging:17.4.0'
implementation 'com.firebaseui:firebase-ui-auth:4.3.1'
implementation 'com.android.support:support-v4:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
def room_version = "1.1.1"
implementation "android.arch.persistence.room:runtime:$room_version"
annotationProcessor "android.arch.persistence.room:compiler:$room_version"
// https://github.com/bumptech/glide
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
// https://www.joda.org/joda-time/
implementation 'joda-time:joda-time:2.10.1'
// trova memory leak
// https://github.com/square/leakcanary
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
// Optional, if you use support library fragments:
debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.3'
apply plugin: 'com.google.gms.google-services'

add a comment |
I have a problem with Firebase Authentication,
if I am logged in I get into a loop that causes me problems.
When I enter this loop, the connection to the Firebase Database is also blocked
I don't know if it can depend on the versions of the dependencies, I put the latest versions.
The errors from the console are these, they arrive continuously:
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
this is more complete:
D/FA: Logging event (FE): screen_view(_vs), Bundle[firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-8001407550778259391]
I/Transaction: runTransaction() usage detected while persistence is enabled. Please be aware that transactions *will not* be persisted across database restarts. See https://www.firebase.com/docs/android/guide/offline-capabilities.html#section-handling-transactions-offline for more details.
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
D/: HostConnection::get() New Host Connection established 0x9ebc9a40, tid 11532
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
Activity resumed, time: 173786466
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
D/: HostConnection::get() New Host Connection established 0xa15e8100, tid 11578
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
I/art: Do partial code cache collection, code=29KB, data=31KB
I/art: After code cache collection, code=29KB, data=31KB
Increasing code cache capacity to 128KB
D/EGL_emulation: eglCreateContext: 0x9ce34aa0: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0x9ce34aa0: ver 2 0 (tinfo 0x9ce366f0)
W/art: Before Android 4.1, method int android.support.v7.widget.DropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
D/EGL_emulation: eglMakeCurrent: 0x9ce34aa0: ver 2 0 (tinfo 0x9ce366f0)
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 4
I/art: Do partial code cache collection, code=49KB, data=59KB
I/art: After code cache collection, code=41KB, data=55KB
I/art: Increasing code cache capacity to 256KB
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
V/FA: Inactivity, disconnecting from the service
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
The problem does not seem to be born immediately, but after some time I open and close the app, and I have the impression that it only happens when I remain logged in when the app starts, but I'm not sure.
The code where the error comes from I think is this:
public void checkCurrentUser()
// [START check_current_user]
NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
// get menu from navigationView
Menu menu = navigationView.getMenu();
FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
if (user != null)
// User is signed in
menu.findItem(R.id.edit_login).setVisible(false);
menu.findItem(R.id.edit_logout).setVisible(true);
if (LoginAmministratore.seiAmministratore(user.getEmail()))
menu.findItem(R.id.edit_notizia).setVisible(true);
menu.findItem(R.id.edit_squadra).setVisible(true);
menu.findItem(R.id.edit_giocatore).setVisible(true);
menu.findItem(R.id.edit_calendario).setVisible(true);
else
menu.findItem(R.id.edit_notizia).setVisible(false);
menu.findItem(R.id.edit_squadra).setVisible(false);
menu.findItem(R.id.edit_giocatore).setVisible(false);
menu.findItem(R.id.edit_calendario).setVisible(false);
else
// No user is signed in
menu.findItem(R.id.edit_login).setVisible(true);
menu.findItem(R.id.edit_logout).setVisible(false);
menu.findItem(R.id.edit_notizia).setVisible(false);
menu.findItem(R.id.edit_squadra).setVisible(false);
menu.findItem(R.id.edit_giocatore).setVisible(false);
menu.findItem(R.id.edit_calendario).setVisible(false);
// [END check_current_user]
The dependencies are these:
dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-basement:16.2.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.google.firebase:firebase-database:16.1.0'
//implementation 'com.google.firebase:firebase-firestore:18.1.0'
implementation 'com.google.firebase:firebase-storage:16.1.0'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.google.firebase:firebase-messaging:17.4.0'
implementation 'com.firebaseui:firebase-ui-auth:4.3.1'
implementation 'com.android.support:support-v4:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
def room_version = "1.1.1"
implementation "android.arch.persistence.room:runtime:$room_version"
annotationProcessor "android.arch.persistence.room:compiler:$room_version"
// https://github.com/bumptech/glide
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
// https://www.joda.org/joda-time/
implementation 'joda-time:joda-time:2.10.1'
// trova memory leak
// https://github.com/square/leakcanary
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
// Optional, if you use support library fragments:
debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.3'
apply plugin: 'com.google.gms.google-services'

I have a problem with Firebase Authentication,
if I am logged in I get into a loop that causes me problems.
When I enter this loop, the connection to the Firebase Database is also blocked
I don't know if it can depend on the versions of the dependencies, I put the latest versions.
The errors from the console are these, they arrive continuously:
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
this is more complete:
D/FA: Logging event (FE): screen_view(_vs), Bundle[firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-8001407550778259391]
I/Transaction: runTransaction() usage detected while persistence is enabled. Please be aware that transactions *will not* be persisted across database restarts. See https://www.firebase.com/docs/android/guide/offline-capabilities.html#section-handling-transactions-offline for more details.
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
D/: HostConnection::get() New Host Connection established 0x9ebc9a40, tid 11532
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
Activity resumed, time: 173786466
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
D/: HostConnection::get() New Host Connection established 0xa15e8100, tid 11578
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
I/art: Do partial code cache collection, code=29KB, data=31KB
I/art: After code cache collection, code=29KB, data=31KB
Increasing code cache capacity to 128KB
D/EGL_emulation: eglCreateContext: 0x9ce34aa0: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0x9ce34aa0: ver 2 0 (tinfo 0x9ce366f0)
W/art: Before Android 4.1, method int android.support.v7.widget.DropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
D/EGL_emulation: eglMakeCurrent: 0x9ce34aa0: ver 2 0 (tinfo 0x9ce366f0)
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 4
I/art: Do partial code cache collection, code=49KB, data=59KB
I/art: After code cache collection, code=41KB, data=55KB
I/art: Increasing code cache capacity to 256KB
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
V/FA: Inactivity, disconnecting from the service
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@27d8f73
The problem does not seem to be born immediately, but after some time I open and close the app, and I have the impression that it only happens when I remain logged in when the app starts, but I'm not sure.
The code where the error comes from I think is this:
public void checkCurrentUser()
// [START check_current_user]
NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
// get menu from navigationView
Menu menu = navigationView.getMenu();
FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
if (user != null)
// User is signed in
menu.findItem(R.id.edit_login).setVisible(false);
menu.findItem(R.id.edit_logout).setVisible(true);
if (LoginAmministratore.seiAmministratore(user.getEmail()))
menu.findItem(R.id.edit_notizia).setVisible(true);
menu.findItem(R.id.edit_squadra).setVisible(true);
menu.findItem(R.id.edit_giocatore).setVisible(true);
menu.findItem(R.id.edit_calendario).setVisible(true);
else
menu.findItem(R.id.edit_notizia).setVisible(false);
menu.findItem(R.id.edit_squadra).setVisible(false);
menu.findItem(R.id.edit_giocatore).setVisible(false);
menu.findItem(R.id.edit_calendario).setVisible(false);
else
// No user is signed in
menu.findItem(R.id.edit_login).setVisible(true);
menu.findItem(R.id.edit_logout).setVisible(false);
menu.findItem(R.id.edit_notizia).setVisible(false);
menu.findItem(R.id.edit_squadra).setVisible(false);
menu.findItem(R.id.edit_giocatore).setVisible(false);
menu.findItem(R.id.edit_calendario).setVisible(false);
// [END check_current_user]
The dependencies are these:
dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-basement:16.2.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.google.firebase:firebase-database:16.1.0'
//implementation 'com.google.firebase:firebase-firestore:18.1.0'
implementation 'com.google.firebase:firebase-storage:16.1.0'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.google.firebase:firebase-messaging:17.4.0'
implementation 'com.firebaseui:firebase-ui-auth:4.3.1'
implementation 'com.android.support:support-v4:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
def room_version = "1.1.1"
implementation "android.arch.persistence.room:runtime:$room_version"
annotationProcessor "android.arch.persistence.room:compiler:$room_version"
// https://github.com/bumptech/glide
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
// https://www.joda.org/joda-time/
implementation 'joda-time:joda-time:2.10.1'
// trova memory leak
// https://github.com/square/leakcanary
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
// Optional, if you use support library fragments:
debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.3'
apply plugin: 'com.google.gms.google-services'


edited Mar 22 at 13:12
N3g4tivo
asked Mar 22 at 9:07
N3g4tivoN3g4tivo
316
316
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55296166%2fwhen-i-am-logged-i-get-int-a-loop-w-bichannelgoogleapi-firebaseauth-getgoog%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55296166%2fwhen-i-am-logged-i-get-int-a-loop-w-bichannelgoogleapi-firebaseauth-getgoog%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown