Title: Android CloudMessaging: Cannot read property 'getToken' of undefined · Issue #325 · fullstackreact/react-native-firestack · GitHub
Open Graph Title: Android CloudMessaging: Cannot read property 'getToken' of undefined · Issue #325 · fullstackreact/react-native-firestack
X Title: Android CloudMessaging: Cannot read property 'getToken' of undefined · Issue #325 · fullstackreact/react-native-firestack
Description: constructor() { console.log('UserStore', firebase.cloudMessaging) firebase.cloudMessaging.getToken().then((token) => { console.log('device token', token) this.deviceToken = token }) } the log returns an object: CloudMessaging {firestack:...
Open Graph Description: constructor() { console.log('UserStore', firebase.cloudMessaging) firebase.cloudMessaging.getToken().then((token) => { console.log('device token', token) this.deviceToken = token }) } the log retur...
X Description: constructor() { console.log('UserStore', firebase.cloudMessaging) firebase.cloudMessaging.getToken().then((token) => { console.log('device token', token) this.deviceToken = token...
Opengraph URL: https://github.com/fullstackreact/react-native-firestack/issues/325
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Android CloudMessaging: Cannot read property 'getToken' of undefined","articleBody":"```\r\nconstructor() {\r\n console.log('UserStore', firebase.cloudMessaging)\r\n firebase.cloudMessaging.getToken().then((token) => {\r\n console.log('device token', token)\r\n this.deviceToken = token\r\n })\r\n }\r\n```\r\n\r\nthe log returns an object:\r\n```\r\nCloudMessaging {firestack: Firestack, eventHandlers: Object, options: Object, requestedPermissions: Object}\r\n```\r\n\r\nhowever `getToken()` returns the error:\r\n\r\n```\r\nPossible Unhandled Promise Rejection (id: 0):\r\nCannot read property 'getToken' of undefined\r\nTypeError: Cannot read property 'getToken' of undefined\r\n```\r\n\r\nHave the callbacks been resolved via the `@ReactMethod`, so that the js can participate in cloud messaging?\r\n\r\nvia:\r\n`\"react-native-firestack\": \"^2.3.9\",`\r\n`\"react-native\": \"0.42.0\",`","author":{"url":"https://github.com/studiobrain","@type":"Person","name":"studiobrain"},"datePublished":"2017-04-04T16:29:33Z","url":"https://github.com/fullstackreact/react-native-firestack/issues/325"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1b0207c6-c0a6-4dcf-b3f6-de75b79d08ad |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A62C:22BB81:52326B:6B9EBF:6AFE6714 |
| html-safe-nonce | 36c5c6301dd965fae8fd3ce3efa88069a024a291a07892d4fc6d4628f5633825 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjJDOjIyQkI4MTo1MjMyNkI6NkI5RUJGOjZBRkU2NzE0IiwidmlzaXRvcl9pZCI6Ijc3OTAyMzYxMDQ0NjM5MDI0ODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 52aa1fbe46e13d693446ad932d6ccc4baeecae21df356c708524be00dae9edf6 |
| hovercard-subject-tag | issue:219309117 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/fullstackreact/react-native-firestack/325/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8476e865a77677d3e45cb782376cef81ebcf717ce8cdec4f7850a10e0bc7b1a4/fullstackreact/react-native-firestack/issues/325 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8476e865a77677d3e45cb782376cef81ebcf717ce8cdec4f7850a10e0bc7b1a4/fullstackreact/react-native-firestack/issues/325 |
| og:image:alt | constructor() { console.log('UserStore', firebase.cloudMessaging) firebase.cloudMessaging.getToken().then((token) => { console.log('device token', token) this.deviceToken = token }) } the log retur... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | studiobrain |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/fullstackreact/react-native-firestack git https://github.com/fullstackreact/react-native-firestack.git |
| octolytics-dimension-user_id | 16674738 |
| octolytics-dimension-user_login | fullstackreact |
| octolytics-dimension-repository_id | 60655868 |
| octolytics-dimension-repository_nwo | fullstackreact/react-native-firestack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 60655868 |
| octolytics-dimension-repository_network_root_nwo | fullstackreact/react-native-firestack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width