GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Android CloudMessaging: Cannot read property 'getToken' of undefined · Issue #325 · fullstackreact/react-native-firestack

Android CloudMessaging: Cannot read property 'getToken' of undefined #325

New issue
Copy link
New issue
Copy link
Open
Open
Android CloudMessaging: Cannot read property 'getToken' of undefined#325
Copy link

Description

@studiobrain
studiobrain
opened on Apr 4, 2017
Issue body actions
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: Firestack, eventHandlers: Object, options: Object, requestedPermissions: Object}

however getToken() returns the error:

Possible Unhandled Promise Rejection (id: 0):
Cannot read property 'getToken' of undefined
TypeError: Cannot read property 'getToken' of undefined

Have the callbacks been resolved via the @ReactMethod, so that the js can participate in cloud messaging?

via:
"react-native-firestack": "^2.3.9",
"react-native": "0.42.0",

Reacted by Manny 5th

Activity

  1. Salakar commented on Apr 7, 2017

    @Salakar
    Salakar
    on Apr 7, 2017
    Collaborator
    More actions

    @studiobrain this hasn't been implemented in this repo yet, but there are alternatives you can use.

    Reacted by Manny 5th
  2. grodriguez1983 commented on May 9, 2017

    @grodriguez1983
    grodriguez1983
    on May 9, 2017
    More actions

    +1

    Reacted by Manny 5th
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.