title: How to initiate an android GCM token refresh?
body: <p>As per the the <a href="https://developers.google.com/cloud-messaging/registration#how-uninstalled-client-app-unregistration-works" rel="nofollow">docs</a>,</p>
  
  <blockquote>
    <p>To protect the client app and app server from potential malicious
    re-use of registration tokens, you should periodically initiate token
    refresh from the server. When GCM registration token refresh is
    initiated from server side, the client app must handle a
    tokenRefreshed message with the GCM registration client/server
    handshake.</p>
  </blockquote>
  
  <p>Are the steps to initiate gcm registration token refresh documented somewhere? </p>
  
  <p>I know about <code>InstanceIDListenerService</code> and <code>onTokenRefresh</code>. Those are for creating a new token and updating it to your app server. But how to do specifically the  following bit?</p>
  
  <blockquote>
    <p>periodically initiate token refresh from the server</p>
  </blockquote>