mcnamee / react-native-starter-kit

:rocket: A React Native boilerplate app to get you up and running very, very quickly :rocket:
MIT License
3.35k stars 863 forks source link

setTimeout Warning #143

Closed cxrod closed 6 years ago

cxrod commented 6 years ago

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 commented 6 years ago

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 https://github.com/firebase/firebase-js-sdk/issues/97 https://github.com/firebase/firebase-js-sdk/issues/283

mcnamee commented 6 years ago

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

eg. see https://github.com/mcnamee/react-native-starter-kit/issues/84