title: FCM Token Expiration
body: <p>Is there any possibility to regenerate a new push token while the app is running in the background?</p>
  
  <p>I have an app that runs on background for a long time which depends on the push messages to trigger some function. In some cases, the user might not close the app but keep running in the background in offline mode for days. This can be But when I'm testing it's experienced that sometimes push token on the server has expired.</p>
  
  <p>According to the <a href="https://firebase.google.com/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService.html#onNewToken(java.lang.String)" rel="nofollow noreferrer">docs</a> they haven't mentioned anything specific on when will this token get refreshed. (OnNewToken method gonna trigger)</p>
  
  <p>What might be the issue? Any idea would be a great help.</p>