{"action":"created","issue":{"url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/610","repository_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal","labels_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/610/labels{/name}","comments_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/610/comments","events_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/610/events","html_url":"https://github.com/geektimecoil/react-native-onesignal/issues/610","id":353042544,"node_id":"MDU6SXNzdWUzNTMwNDI1NDQ=","number":610,"title":"Getting playerId in react-native android ","user":{"login":"shubham-matale","id":27726703,"node_id":"MDQ6VXNlcjI3NzI2NzAz","avatar_url":"https://avatars2.githubusercontent.com/u/27726703?v=4","gravatar_id":"","url":"https://api.github.com/users/shubham-matale","html_url":"https://github.com/shubham-matale","followers_url":"https://api.github.com/users/shubham-matale/followers","following_url":"https://api.github.com/users/shubham-matale/following{/other_user}","gists_url":"https://api.github.com/users/shubham-matale/gists{/gist_id}","starred_url":"https://api.github.com/users/shubham-matale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubham-matale/subscriptions","organizations_url":"https://api.github.com/users/shubham-matale/orgs","repos_url":"https://api.github.com/users/shubham-matale/repos","events_url":"https://api.github.com/users/shubham-matale/events{/privacy}","received_events_url":"https://api.github.com/users/shubham-matale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-22T17:01:44Z","updated_at":"2018-08-23T09:07:01Z","closed_at":null,"author_association":"NONE","body":"Can you plz tell me how to get player id in react-native android. It's not mentioned in documentation. Please Help me"},"comment":{"url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/comments/415346303","html_url":"https://github.com/geektimecoil/react-native-onesignal/issues/610#issuecomment-415346303","issue_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/610","id":415346303,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTM0NjMwMw==","user":{"login":"anniewey","id":32358334,"node_id":"MDQ6VXNlcjMyMzU4MzM0","avatar_url":"https://avatars3.githubusercontent.com/u/32358334?v=4","gravatar_id":"","url":"https://api.github.com/users/anniewey","html_url":"https://github.com/anniewey","followers_url":"https://api.github.com/users/anniewey/followers","following_url":"https://api.github.com/users/anniewey/following{/other_user}","gists_url":"https://api.github.com/users/anniewey/gists{/gist_id}","starred_url":"https://api.github.com/users/anniewey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anniewey/subscriptions","organizations_url":"https://api.github.com/users/anniewey/orgs","repos_url":"https://api.github.com/users/anniewey/repos","events_url":"https://api.github.com/users/anniewey/events{/privacy}","received_events_url":"https://api.github.com/users/anniewey/received_events","type":"User","site_admin":false},"created_at":"2018-08-23T09:07:01Z","updated_at":"2018-08-23T09:07:01Z","author_association":"NONE","body":"It's mentioned in the docs under **Getting Player ID and Push Token**\r\nhttps://documentation.onesignal.com/docs/react-native-sdk\r\n\r\n```\r\ncomponentWillMount() {\r\n    OneSignal.init(\"YOUR_ONESIGNAL_APPID\");\r\n    OneSignal.configure(); //will trigger ids event to fire.\r\n    OneSignal.addEventListener('ids', this.onIds);\r\n}\r\n\r\ncomponentWillUnmount() {\r\n    OneSignal.removeEventListener('ids', this.onIds);\r\n}\r\n\r\nonIds(device) {\r\n    console.log('Device info: ', device); //your playerId\r\n}\r\n```"}}
{"actor":{"display_login":"anniewey"}}