Open blumanski opened 8 years ago
I'll look into this
I have exactly the same error.
@auser hey, any progress on this?
@auser Those work fine
FirebaseStack.cloudMessaging.subscribeToTopic("film").then(function (topic) {
// whatever
}).catch(function(err){
console.error(err);
});
FirebaseStack.cloudMessaging.getToken()
.then(function(cloudTokenData) {........
Those below one doesn't
FirebaseStack.cloudMessaging.listenForReceiveNotification((msg) =>{
console.log(msg.data);
console.log(msg.notification);
});
FirebaseStack.cloudMessaging.listenForTokenRefresh(function (token) {
_this.updateDeviceToken(token)
.then(function(response) {
resolve(response)
})
.catch(function(fire){
reject(fire)
})
});
In case that helps :-)
i am seeing the same error. for me the crash occurs on iOS, for this method/callback: firestack.cloudMessaging.listenForReceiveNotification((msg) => ....
on Droid is ok
has there been any progress in resolving ?
@ajonno I use for now https://github.com/evollu/react-native-fcm/issues/177 (only for the cloudMessages) and hope that they may merge, but it doesn't look like it so far, I guess.
Anyway, just in case you need a solution right now.
Otherwise waiting until this is implemented.
On IOS I get the following error using cloud messages. The build is fine and the app is running, just the red screen comes up. Running on emulator or device.
Code I use