Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setTimeout Warning #143

Closed
cxrod opened this issue Feb 28, 2018 · 2 comments
Closed

setTimeout Warning #143

cxrod opened this issue Feb 28, 2018 · 2 comments

Comments

@cxrod
Copy link

cxrod commented Feb 28, 2018

Hi, I just cloned, installed, started and executed this project, and I received the setTimeout warning on my Android 7.1.

I searched in the whole project for the setTimeout and is only used in the logout. I commented this line and the warning continuous showing up, so the problem is not there.

The warning say: Setting a timer for a long period of time, i.e. multiple minutes, is a performace and correctness issue on Android as it keeps the timer module awake, and timers can only be called when the app is in the foreground. (Saw setTimeout with duration 143614ms)

@dv297
Copy link

dv297 commented Mar 8, 2018

Looks like the stracktrace is pointing to node_modules/@firebase/auth/dist/auth.js

I presume it is linked to the following issues for firebase-js-sdk
firebase/firebase-js-sdk#97
firebase/firebase-js-sdk#283

@mcnamee
Copy link
Owner

mcnamee commented Mar 20, 2018

@dv297 is correct. This is a long standing issue from Firebase.

eg. see #84

@mcnamee mcnamee closed this as completed Mar 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants