Closed francescogatto closed 2 years ago
This is probably another compatibility bug. Please compare dependency versions with our dependencies https://github.com/helpcrunch/android-sdk-demo/blob/master/DEPENDENCY_LIST.md
Hi! HEre my dependencies for firebase and still have crashes! Please is very important because it happens without opening your Help Activity
implementation platform('com.google.firebase:firebase-bom:29.1.0') implementation 'com.google.firebase:firebase-inappmessaging-display-ktx' implementation 'com.google.firebase:firebase-analytics-ktx' implementation 'com.google.firebase:firebase-crashlytics-ktx' implementation 'com.google.firebase:firebase-config-ktx' implementation 'com.google.firebase:firebase-messaging-ktx' implementation 'com.google.firebase:firebase-auth-ktx' implementation 'com.google.firebase:firebase-database-ktx' implementation 'com.google.firebase:firebase-dynamic-links-ktx' implementation 'com.google.firebase:firebase-storage-ktx' implementation 'com.google.firebase:firebase-firestore-ktx'
Update: Seems happen when i try to write to my realtime database in this way:
fun incrementCounter() {
if(isCounterPaymentsEnabled) {
val valueEventListener = object : ValueEventListener {
override fun onDataChange(snapshot: DataSnapshot) {
var count = snapshot.value as Long
count += 1
FirebaseDatabase.getInstance().reference.child("counter").setValue(count)
FirebaseDatabase.getInstance().reference.child("counter").removeEventListener(this)
}
override fun onCancelled(error: DatabaseError) {
e { "$error" }
}
}
FirebaseDatabase.getInstance().reference.child("counter").addValueEventListener(valueEventListener)
}
isCounterPaymentsEnabled is a remote config variable, so i can disable it. The crash started when i activated it
Please try to update HelpCrunch version to 3.2.3-rc-07 and Firebase BOM to 30.2.0. I hope it helps
I will do in the next release.
Il Ven 29 Lug 2022, 09:55 Alexey Mostovoy @.***> ha scritto:
Please try to update HelpCrunch version to 3.2.3-rc-07 and Firebase BOM to 30.2.0. I hope it helps
— Reply to this email directly, view it on GitHub https://github.com/helpcrunch/android-sdk-demo/issues/62#issuecomment-1198987725, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAGC7FODWKU3WG7KLUQHC3VWOE5PANCNFSM54ZF6KKQ . You are receiving this because you authored the thread.Message ID: @.***>
HI
I have this error in crashlytics: