title: How to get updated device token in react native?
body: <p>Since the device token on iOS can change even after the user has granted push notifications permission, there needs to be a way for me to retrieve the device token when it has updated. </p>
  
  <p>The <a href="https://facebook.github.io/react-native/docs/pushnotificationios" rel="nofollow noreferrer">react native PushNotificationIOS module</a> provides documentation about how to ask the user for push notification permissions <code>PushNotificationIOS.requestPermissions();</code> and how to retrieve the device token when the user allows push notifications using an event listener <code>PushNotificationIOS.addEventListener('register', (token) =&gt; console.log(token));</code></p>
  
  <p>But there seems to be no function that would allow me to query the push notifications device token after this. How can I check whether the device token has been updated? How can I retrieve the device token at any later stage?</p>