Here, is my code which actually not working, nor console any log:
if (nextAppState.match(/inactive|background/) && nextAppState === 'active') { console.log('App has come to the foreground! (iOS and Android)'); // this._expireSession(); }