react-native-pusher-push-notifications application crash when receive notification

问题: I'm using react-native-pusher-push-notifications to get notification in react native android app application registers correctly and when i send notification from pusher be...

问题:

I'm using react-native-pusher-push-notifications to get notification in react native android app application registers correctly and when i send notification from pusher beams dashboard application crash and close

i'm using :

compile project(':react-native-pusher-push-notifications')
implementation 'com.google.firebase:firebase-core'
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.pusher:push-notifications-android'

回答1:

It's not an answer, but it might help. The same thing is happening to me, when i send a test push notification to the device (registered already), the app crashes, so it recives the notification but in that process, it crashes.

The main difference here is that i'm not using the react-native-pusher-push-notifications library. I did it just as pusher told me to do it, in MainApplication.java for example:

import com.pusher.pushnotifications.PushNotifications;



PushNotifications.start(getApplicationContext(), "xxxxxx-ccccc-4234-8ba8-cccsadadasdas");
  PushNotifications.addDeviceInterest("hello");

So i think it might be something to do with libraries versions and so, but not with the package you are using (by the way, i haven't solved the problem yet, i was lucking for the solution and your question appeared).


回答2:

FIXED!

Its a problem with firebase messaging version, see this, it fixed the crash

https://github.com/b8ne/react-native-pusher-push-notifications/issues/41

  • 发表于 2019-07-05 17:54
  • 阅读 ( 254 )
  • 分类:sof

条评论

请先 登录 后评论
不写代码的码农
小编

篇文章

作家榜 »

  1. 小编 文章
返回顶部
部分文章转自于网络,若有侵权请联系我们删除