We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
getToken()
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?
@ReactMethod
via: "react-native-firestack": "^2.3.9", "react-native": "0.42.0",
"react-native-firestack": "^2.3.9",
"react-native": "0.42.0",
The text was updated successfully, but these errors were encountered:
@studiobrain this hasn't been implemented in this repo yet, but there are alternatives you can use.
Sorry, something went wrong.
+1
No branches or pull requests
the log returns an object:
however
getToken()
returns the error: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",
The text was updated successfully, but these errors were encountered: