Skip to content

Instantly share code, notes, and snippets.

@erfanium
Created October 23, 2024 12:56
Show Gist options
  • Save erfanium/70dbf649fd6ce35da8e4b2e607f4e6d9 to your computer and use it in GitHub Desktop.
Save erfanium/70dbf649fd6ce35da8e4b2e607f4e6d9 to your computer and use it in GitHub Desktop.
mFirebaseAnalytics!!.appInstanceId.addOnCompleteListener { task ->
if (task.isSuccessful) {
Ext.logD("mFirebaseAnalytics:appInstanceId", task.result ?: "appInstanceId is null")
} else {
Ext.logD("mFirebaseAnalytics:appInstanceId", "Failed to get appInstanceId: ${task.exception?.message}")
}
}
mFirebaseAnalytics!!.sessionId.addOnCompleteListener { task ->
if (task.isSuccessful) {
Ext.logD("mFirebaseAnalytics:sessionId", task.result.toString())
} else {
Ext.logD("mFirebaseAnalytics:sessionId", "Failed to get appInstanceId: ${task.exception?.message}")
}
}
Ext.logD("mFirebaseAnalytics:firebaseInstanceId", mFirebaseAnalytics!!.firebaseInstanceId)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment