title: (Nativescript/Angular2) Keep user logged in
body: <p>In the mobile application I'm developing, there is a login page. Once the user is logged in, he gets an access token which can be used for a few things but the access token is available for an hour. I know already how to renew it but is there a specific function which can be called so this operation is carried out automatically every hour ? </p>
  
  <p>As for the login, for the moment, if I leave the application with the home button or the back button and I come back on the app, I'm still logged in but it's not the case if I kill the app (which I'd like to be the case). Is there anyone who knows how I could implement it ? </p>
  
  <p>Thank you in advance</p>