{"action":"created","issue":{"url":"https://api.github.com/repos/oney/react-native-gcm-android/issues/11","labels_url":"https://api.github.com/repos/oney/react-native-gcm-android/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/oney/react-native-gcm-android/issues/11/comments","events_url":"https://api.github.com/repos/oney/react-native-gcm-android/issues/11/events","html_url":"https://github.com/oney/react-native-gcm-android/issues/11","id":119429814,"number":11,"title":"Should onTokenRefresh() be included?","user":{"login":"ACCTFORGH","id":9537740,"avatar_url":"https://avatars.githubusercontent.com/u/9537740?v=3","gravatar_id":"","url":"https://api.github.com/users/ACCTFORGH","html_url":"https://github.com/ACCTFORGH","followers_url":"https://api.github.com/users/ACCTFORGH/followers","following_url":"https://api.github.com/users/ACCTFORGH/following{/other_user}","gists_url":"https://api.github.com/users/ACCTFORGH/gists{/gist_id}","starred_url":"https://api.github.com/users/ACCTFORGH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ACCTFORGH/subscriptions","organizations_url":"https://api.github.com/users/ACCTFORGH/orgs","repos_url":"https://api.github.com/users/ACCTFORGH/repos","events_url":"https://api.github.com/users/ACCTFORGH/events{/privacy}","received_events_url":"https://api.github.com/users/ACCTFORGH/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T06:41:01Z","updated_at":"2015-11-30T07:48:44Z","closed_at":null,"body":"As mentioned in the GCM doc, onTokenRefresh() should be invoked if registration token changed. Currently this method is not included in the package. Should this method be implemented? or the registration token stays same unless manually changed so this method is optional.\r\n\r\nGCM doc link: https://developers.google.com/cloud-messaging/android/client?configured=true\r\n\r\nThanks. "},"comment":{"url":"https://api.github.com/repos/oney/react-native-gcm-android/issues/comments/160546507","html_url":"https://github.com/oney/react-native-gcm-android/issues/11#issuecomment-160546507","issue_url":"https://api.github.com/repos/oney/react-native-gcm-android/issues/11","id":160546507,"user":{"login":"oney","id":4091190,"avatar_url":"https://avatars.githubusercontent.com/u/4091190?v=3","gravatar_id":"","url":"https://api.github.com/users/oney","html_url":"https://github.com/oney","followers_url":"https://api.github.com/users/oney/followers","following_url":"https://api.github.com/users/oney/following{/other_user}","gists_url":"https://api.github.com/users/oney/gists{/gist_id}","starred_url":"https://api.github.com/users/oney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oney/subscriptions","organizations_url":"https://api.github.com/users/oney/orgs","repos_url":"https://api.github.com/users/oney/repos","events_url":"https://api.github.com/users/oney/events{/privacy}","received_events_url":"https://api.github.com/users/oney/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T07:48:44Z","updated_at":"2015-11-30T07:48:44Z","body":"I will recommend doing `requestPermissions ` every time when app starts, and check whether the token changes by yourself."}}