在不使用senderID的情况下调用PushNotification.configure()时,react-native-push-notification工作得很好,但是当添加它时,应用程序关闭,没有日志。
平台: android (真实设备)
react-native-push-notification:^3.0.2
react-native: 0.49.3
我尝试了try catch和sentry,但都没有捕捉到错误
发布于 2018-02-07 02:25:36
问题是我使用的是一个不兼容的play-services-gcm版本。
所以我在app/build.gradle中将force=true更改为force=false
compile ('com.google.android.gms:play-services-gcm:8.1.0') {
force = false; <== Here
}https://stackoverflow.com/questions/48609496
复制相似问题