当 FCM 在后台和前台同时接收时,Android 应用程序崩溃

问题描述 投票:0回答:0
应用程序一旦收到 FCM,它就会崩溃,无论它是打开还是在后台运行。我不知道问题可能出在哪里(我的第一个 rn 实验),但我认为它与我的设置有关?

android uild.gradle

buildscript { ext { buildToolsVersion = "33.0.0" minSdkVersion = 21 compileSdkVersion = 33 targetSdkVersion = 33 firebaseVersion = "9.18.0" firebaseMessagingVersion = "18.8.0" // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP. ndkVersion = "23.1.7779620" } repositories { google() mavenCentral() } dependencies { classpath("com.android.tools.build:gradle:7.3.1") classpath("com.facebook.react:react-native-gradle-plugin") classpath("com.google.gms:google-services:4.3.15") } }
android pp\src\main\jav
react-native firebase-cloud-messaging
© www.soinside.com 2019 - 2024. All rights reserved.