{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/react-native-code-push/issues/1443","repository_url":"https://api.github.com/repos/Microsoft/react-native-code-push","labels_url":"https://api.github.com/repos/Microsoft/react-native-code-push/issues/1443/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/react-native-code-push/issues/1443/comments","events_url":"https://api.github.com/repos/Microsoft/react-native-code-push/issues/1443/events","html_url":"https://github.com/Microsoft/react-native-code-push/issues/1443","id":376012804,"node_id":"MDU6SXNzdWUzNzYwMTI4MDQ=","number":1443,"title":"How to get metadata info in the Native side?","user":{"login":"ferrannp","id":774577,"node_id":"MDQ6VXNlcjc3NDU3Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/774577?v=4","gravatar_id":"","url":"https://api.github.com/users/ferrannp","html_url":"https://github.com/ferrannp","followers_url":"https://api.github.com/users/ferrannp/followers","following_url":"https://api.github.com/users/ferrannp/following{/other_user}","gists_url":"https://api.github.com/users/ferrannp/gists{/gist_id}","starred_url":"https://api.github.com/users/ferrannp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferrannp/subscriptions","organizations_url":"https://api.github.com/users/ferrannp/orgs","repos_url":"https://api.github.com/users/ferrannp/repos","events_url":"https://api.github.com/users/ferrannp/events{/privacy}","received_events_url":"https://api.github.com/users/ferrannp/received_events","type":"User","site_admin":false},"labels":[{"id":580538502,"node_id":"MDU6TGFiZWw1ODA1Mzg1MDI=","url":"https://api.github.com/repos/Microsoft/react-native-code-push/labels/android","name":"android","color":"c2e0c6","default":false},{"id":554402181,"node_id":"MDU6TGFiZWw1NTQ0MDIxODE=","url":"https://api.github.com/repos/Microsoft/react-native-code-push/labels/waiting-for-clarification","name":"waiting-for-clarification","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":{"login":"NickToropov","id":31315772,"node_id":"MDQ6VXNlcjMxMzE1Nzcy","avatar_url":"https://avatars2.githubusercontent.com/u/31315772?v=4","gravatar_id":"","url":"https://api.github.com/users/NickToropov","html_url":"https://github.com/NickToropov","followers_url":"https://api.github.com/users/NickToropov/followers","following_url":"https://api.github.com/users/NickToropov/following{/other_user}","gists_url":"https://api.github.com/users/NickToropov/gists{/gist_id}","starred_url":"https://api.github.com/users/NickToropov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickToropov/subscriptions","organizations_url":"https://api.github.com/users/NickToropov/orgs","repos_url":"https://api.github.com/users/NickToropov/repos","events_url":"https://api.github.com/users/NickToropov/events{/privacy}","received_events_url":"https://api.github.com/users/NickToropov/received_events","type":"User","site_admin":false},"assignees":[{"login":"NickToropov","id":31315772,"node_id":"MDQ6VXNlcjMxMzE1Nzcy","avatar_url":"https://avatars2.githubusercontent.com/u/31315772?v=4","gravatar_id":"","url":"https://api.github.com/users/NickToropov","html_url":"https://github.com/NickToropov","followers_url":"https://api.github.com/users/NickToropov/followers","following_url":"https://api.github.com/users/NickToropov/following{/other_user}","gists_url":"https://api.github.com/users/NickToropov/gists{/gist_id}","starred_url":"https://api.github.com/users/NickToropov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickToropov/subscriptions","organizations_url":"https://api.github.com/users/NickToropov/orgs","repos_url":"https://api.github.com/users/NickToropov/repos","events_url":"https://api.github.com/users/NickToropov/events{/privacy}","received_events_url":"https://api.github.com/users/NickToropov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-10-31T15:12:25Z","updated_at":"2018-11-15T13:58:27Z","closed_at":"2018-11-15T13:58:27Z","author_association":"NONE","body":"Same as here: https://stackoverflow.com/questions/39796511/how-do-i-show-the-current-codepush-version-label-in-my-react-native-android-app but not from React Native but from Native. I don't seem to figure that out (is it exposed?).\r\n\r\nOn Android I can do:\r\n\r\n```kt\r\nval codePush = CodePush(args.codePushKey, args.hostApplication, BuildConfig.DEBUG)\r\n// And access codePush.appVersion\r\n```\r\n\r\nHowever this only gives me the target binary version. How can I get the label (internal version) and description from Native Android and from Native iOS?\r\n\r\nSomething like:\r\n\r\n`\"1.0.0\", \"v20\", \"Some description for this version\"`\r\n\r\n### Environment\r\n\r\n* react-native-code-push version: 5.4.2\r\n* react-native version: 0.57.x\r\n* iOS/Android/Windows version: Android Studio 3.2.1, gradlePluginVersion 3.2.0 and gradle 4.6.\r\n* Does this reproduce on a debug build or release build? Release\r\n* Does this reproduce on a simulator, or only on a physical device? Both\r\n"}}
{"actor":{"display_login":"NickToropov"}}