Zoltan Demant
11/28/2023, 8:35 AMThe Crashlytics build ID is missing. This occurs when the Crashlytics Gradle plugin is missing from your app's build configuration.
Ultimately no resolution, so I thought Id ask here. The build is setup correctly, and Im even seeing the issue in older (unchanged) projects where things used to work. Specifying shrinkResources false
gets things working, so Im sure its proguard related, but I cant figure out how to make it keep the build id. Any ideas? 🌻aris
11/29/2023, 10:52 AMChristopher Mederos
12/17/2023, 3:36 AMJoe Altidore
01/25/2024, 3:22 PMclass FirebaseService : FirebaseMessagingService() {
init {
Log.d("TAG", "onMessageReceived: ")
}
override fun onNewToken(token: String) {
super.onNewToken(token)
Log.d("TAG", "onNewToken: $token")
}
override fun onMessageReceived(message: RemoteMessage) {
super.onMessageReceived(message)
Log.d("TAG", "onMessageReceived: ${message._notification_?._title_}")
}
}
I have also added this class to my manifest as shown below
<service
android:name=".FirebaseService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGIN_EVENT"/>
</intent-filter>
</service>
However, when the app is in the background, I receive notification on the notification tray but when the app is open, I expect to see the log message in the onMessageReceived method which never triggers.
What am i missing?UzMbApps
01/29/2024, 10:31 PMDjuro
02/11/2024, 6:39 PMbuild.gradle.kts
implementation("dev.gitlive:firebase-firestore:1.11.1")
implementation("dev.gitlive:firebase-common:1.11.1")
The error I am getting is
Failed to resolve: com.google.firebase:firebase-firestore
Failed to resolve: com.google.firebase:firebase-common-ktx
I created the compose mulitplatform project using multiplatform wizard https://kmp.jetbrains.com/Daniele B
02/23/2024, 6:10 PMdylan
02/28/2024, 12:24 PMfirebaseAnalyticsTracker.setUserId(some_unique_user_id)
has to be done everytime an app/process starts or calling it once after login is enough and the firebase sdk stores it somewhereSevak Tadevosyan
03/09/2024, 5:05 PMFile
from bitmap or byteArray in KMM?Pablichjenkov
03/28/2024, 6:09 AMAkram Bensalem
05/02/2024, 9:06 AMAshu
05/16/2024, 8:03 AMMark
05/22/2024, 2:15 PMcom.firebaseui:firebase-ui-auth
has not been updated to work with the latest play-services-auth
21.0.0 (or later)? https://github.com/firebase/codelab-friendlychat-android/issues/294Ruben Quadros
05/26/2024, 2:41 PMkotlinx-coroutines-play-services
dependency for android. What is the alternative for server side? I'm using firebase admin sdk on my kotlin serverTrey
05/30/2024, 2:06 PM./gradlew -PprojectsToPublish="firebase-messaging" publishReleasingLibrariesToMavenLocal
However, my changes aren't being used. Is there another gradle setting I've missed? I assumed that it would find the proper version of firebase-messaging in my local repo, use that and then pull the rest from the public repo. Is that what should happen?soufianehamama9
06/09/2024, 3:59 PMHamza Kovacevic
07/01/2024, 9:24 AMEduardo Ruesta
10/24/2024, 1:57 AMApochi
11/12/2024, 8:34 AMDaniel
12/14/2024, 10:23 PM> Task :shared:checkSandboxAndWriteProtection
> Task :shared:checkKotlinGradlePluginConfigurationErrors SKIPPED
> Task :shared:compileKotlinIosArm64 UP-TO-DATE
> Task :shared:xcodeVersion UP-TO-DATE
> Task :shared:linkDebugFrameworkIosArm64 FAILED
warning: Cannot infer a bundle ID from packages of source files and exported dependencies, use the bundle name instead: shared. Please specify the bundle ID explicitly using the -Xbinary=bundleId=<id> compiler flag.
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
Please try to disable compiler caches and rerun the build. To disable compiler caches, add the following line to the gradle.properties file in the project's root directory:
kotlin.native.cacheKind.iosArm64=none
Also, consider filing an issue with full Gradle log here: <https://kotl.in/issue>
The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
ld: warning: ignoring duplicate libraries: '-lcompression', '-ldl', '-lz'
ld: framework 'FirebaseCore' not found
error: Compilation finished with errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared:linkDebugFrameworkIosArm64'.
> Compilation finished with errors
In my app I have the latest versions of Kotlin and Firebase:
kotlin {
androidTarget()
listOf(
iosX64(),
iosArm64(),
).forEach {
it.binaries.framework {
baseName = "shared"
}
}
plugins{
kotlin("android").version("2.0.21").apply(false)
kotlin("multiplatform").version("2.0.21").apply(false)
}
sourceSets {
val commonMain by getting {
dependencies {
implementation("dev.gitlive:firebase-firestore:2.1.0")
implementation("dev.gitlive:firebase-common:2.1.0")
implementation("dev.gitlive:firebase-auth:2.1.0")
implementation("dev.gitlive:firebase-functions:2.1.0")
}
}
The FirebaseCore is present in link Binary with Libraries from Xcode : image 1
Also in Frameworks targets: image 2
and I use the last version of Firebase SDK iOS 11.6.0: image 3
Also when I import FirebaseCore in swift for my app, everything goes as expected, I can even go inside the FirebaseCore import and check their code.
Version of gradle:
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
What could be the problem of: ld: framework 'FirebaseCore' not foundDaniel
12/18/2024, 1:54 PMcoroutineScope.launch(<http://Dispatchers.IO|Dispatchers.IO>) {
val timeTaken = measureTimeMillis {
currentAndroidVersion =
loginViewModel.repo.checkAndroidVersion(lastUpdateDate)
}
println("checkAndroidVersion took $timeTaken ms to execute")
}
this usually prints:
checkAndroidVersion took 1394 ms to execute
checkAndroidVersion took 1028 ms to executeKMM repo:
val functions = Firebase.functions("europe-central2")
suspend fun checkAndroidVersion(version: String): String{
return functions.httpsCallable("checkAndroidVersion").invoke(version).data<String>()
}
cloud function:
exports.checkAndroidVersion =
onCall({region: "europe-central2", minInstances: 1}, (request) => {
<http://logger.info|logger.info>("current user version = "+request.data, {structuredData: true});
const version = request.data;
if (version != "15/10/2024") {
return version;
}
return "updated";
});
Keep in mind that I using Firebase Kotlin SDK since I have a KMM app.Niklas Wintrén
01/17/2025, 10:31 AMAnkit Sharma
01/21/2025, 12:00 PMDaniel
01/21/2025, 10:02 PMEduardo Ruesta
02/18/2025, 1:32 PMEduardo Ruesta
02/19/2025, 1:59 PMPablo
03/08/2025, 10:45 AMfirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_ITEM) {
param(FirebaseAnalytics.Param.ITEM_ID, id)
param(FirebaseAnalytics.Param.ITEM_NAME, name)
param(FirebaseAnalytics.Param.CONTENT_TYPE, "image")
}
But the reality is that if you do that, it's impossible to see ITEM_ID and ITEM_NAME in the firebase console. You only can see grouped CONTENT_TYPE events. There are a lot of stackoverflow posts of people saying the same.Stephen
04/23/2025, 6:41 PMNitesh Singh
04/29/2025, 12:55 PMNitesh Singh
04/30/2025, 1:21 PM