😎 #ของดีที่ขาเดฟห้ามพลาด กับ Firebase Crashlytics ที่จะมาเป็นเสมือนเพื่อนที่คอยตรวจสอบ - รายงานอาการ Crash ของ Application ที่เราสร้างให้ตลอดเวลาแบบ Real-time !!
.
ด้วยความพิเศษคือ ขนาดที่เล็กมาก ไม่กินทรัพยากรเยอะ ทำให้แอปพลิเคชันไม่ขยายขนาดจนบวม, สามารถรายงานอาการ Crash ของผู้ใช้ได้แบบ Real-time มีระบบที่ช่วยเรา Track, จัดลำดับความสำคัญของปัญหา เพิ่มคุณภาพของแอปพลิเคชันเราได้ด้วย :D
.
👨💻 นอกจากนี้ยังมีฟังก์ชันอื่น ๆ ให้ลองอีกเพียบเช่นการจัดกลุ่มอาการของปัญหาภายในแอปพลิเคชัน สามารถใช้ได้ทั้ง iOS และ Android อีกด้วย
.
จริง ๆ แล้ว Firebase Crashlytics ไม่ใช่ของใหม่สำหรับใครหลายคน แต่แน่นอนว่าก็มีคนจำนวนไม่น้อยที่ไม่รู้จักเครื่องมือตัวนี้ ดังนั้นหากใครอยากลองดูรายละเอียดเพิ่มเติมหละก็ ดูได้ที่นี่เลยจ้า
.
https://firebase.google.com/docs/crashlytics/
.
#BorntoDev - Coding Academy ให้การพัฒนาเทคโนโลยีเป็นเรื่องง่ายสำหรับทุกคน
「firebase crashlytics」的推薦目錄:
- 關於firebase crashlytics 在 BorntoDev Facebook 的精選貼文
- 關於firebase crashlytics 在 BorntoDev Facebook 的最讚貼文
- 關於firebase crashlytics 在 iThome Facebook 的最佳貼文
- 關於firebase crashlytics 在 Firebase Crashlytics - iT 邦幫忙 的評價
- 關於firebase crashlytics 在 Logging Ad Response ID with Firebase Crashlytics | Android 的評價
- 關於firebase crashlytics 在 capacitor-community/firebase-crashlytics - GitHub 的評價
- 關於firebase crashlytics 在 Monitoring your Flutter app's stability with Firebase Crashlytics 的評價
- 關於firebase crashlytics 在 Firebase crashlytics not able to read crash reports 的評價
- 關於firebase crashlytics 在 Firebase Crashlytics for Tracking Real-Time... | Facebook 的評價
- 關於firebase crashlytics 在 網路上關於firebasecrashlytics-在PTT/MOBILE01/Dcard上的 ... 的評價
- 關於firebase crashlytics 在 網路上關於firebasecrashlytics-在PTT/MOBILE01/Dcard上的 ... 的評價
- 關於firebase crashlytics 在 網路上關於firebasecrashlytics-在PTT/MOBILE01/Dcard上的 ... 的評價
firebase crashlytics 在 BorntoDev Facebook 的最讚貼文
😎 #ของดีที่ขาเดฟห้ามพลาด กับ Firebase Crashlytics ที่จะมาเป็นเสมือนเพื่อนที่คอยตรวจสอบ - รายงานอาการ Crash ของ Application ที่เราสร้างให้ตลอดเวลาแบบ Real-time !!
.
ด้วยความพิเศษคือ ขนาดที่เล็กมาก ไม่กินทรัพยากรเยอะ ทำให้แอปพลิเคชันไม่ขยายขนาดจนบวม, สามารถรายงานอาการ Crash ของผู้ใช้ได้แบบ Real-time มีระบบที่ช่วยเรา Track, จัดลำดับความสำคัญของปัญหา เพิ่มคุณภาพของแอปพลิเคชันเราได้ด้วย :D
.
👨💻 นอกจากนี้ยังมีฟังก์ชันอื่น ๆ ให้ลองอีกเพียบเช่นการจัดกลุ่มอาการของปัญหาภายในแอปพลิเคชั...
See More
firebase crashlytics 在 iThome Facebook 的最佳貼文
Fabric未來將和Firebase結合,Google準備讓Crashlytics成為Firebase的當機報告解決方案,Digits仍由Twitter維護。
firebase crashlytics 在 Logging Ad Response ID with Firebase Crashlytics | Android 的解答
Firebase
Crashlytics
is a lightweight, realtime crash reporter that makes it easy for you to manage
stability issues in your app. Crashlytics saves you troubleshooting time by
intelligently grouping crashes and highlighting the circumstances that lead up
to them.
This guide describes how to integrate Crashlytics into your Android Studio
project so that you can log ad response IDs. Later, when you troubleshoot
crashes in your app, you can look up the ad response ID and use the Ad Review
Center in AdMob to find and block the ads.
If you would like to try logging with Firebase from a clean app, you can
download or clone the Google Mobile Ads SDK examples for Android
repository on
GitHub. This guide specifically uses theBanner Example.
If you already have an app, you should be able to proceed to other steps
with your app's package name. The same steps can also be applied to other
examples in the repository with minor adaptations.
In order to use Firebase Crashlytics, you must create a Firebase project and
add your app to it. If you haven't already, create a Firebase project. Make
sure to register your
app to it.
In the Crashlytics page of the Firebase console, click Set up
Crashlytics.
In the screen that appears, click No > Set up a new Firebase
app.
In your build.gradle, add the dependencies for Google Analytics, Fabric, and
Crashlytics.
project/build.gradle
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'// Add the Fabric plugin
apply plugin: 'io.fabric'dependencies {
// ... // Add the Google Mobile Ads SDK
implementation 'com.google.android.gms:play-services-ads:23.1.0' // Add the Firebase Crashlytics dependency.
implementation 'com.google.firebase:firebase-crashlytics:19.0.0'
}
buildscript {
repositories {
// ...
// Add Google's Maven repository.
google()
} dependencies {
// ... classpath 'com.google.gms:google-services:4.4.1' // Add the Fabric Crashlytics plugin.
classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.1'
}
}allprojects {
// ...
repositories {
// Check that Google's Maven repository is included (if not, add it).
google() // ...
}
}
Build and run your app to make sure to make sure Crashlytics is configured
correctly. Once successful, you will be able to access the Crashlytics
dashboard.
(Optional): Test your Setup
By Adding a crash
button
you can force a crash for causing an app crash with each button press.
Here's an example that shows how to add a crash button in the onCreate()
method of an
Activity
:
Java
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_my); // Gets the ad view defined in layout/ad_fragment.xml with ad unit ID set in
// values/strings.xml.
adView = findViewById(R.id.ad_view); // Start loading the ad in the background.
adView.loadAd(new AdRequest.Builder().build()); // Add a crash button.
Button crashButton = new Button(this);
crashButton.setText("Crash!");
crashButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
throw new RuntimeException("Test Crash"); // Force a crash
}
}); addContentView(crashButton, new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT));
}
Kotlin
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_my) // Gets the ad view defined in layout/ad_fragment.xml with ad unit ID set in
// values/strings.xml.
adView = findViewById(R.id.ad_view) // Start loading the ad in the background.
adView.loadAd(AdRequest.Builder().build()) // Add a crash button.
val crashButton = Button(this)
crashButton.text = "Crash!"
crashButton.setOnClickListener {
throw RuntimeException("Test Crash") // Force a crash
} addContentView(crashButton, ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT))
}
In Android Studio, build and run your app on an emulator or a connected device.
After the app is loaded, you can click the Crash button. Relaunch the app
from the device or Android Studio for the crash log to be uploaded to
Crashlyics.
Key Point: While the crash and session data might be visible instantly in the
Firebase console, custom keys may take an hour or more to propagate.
Step 2: Log the ad response ID
If you load multiple ads and show them at different times, it is a good idea to
log each ad response Id with a separate key. For instance, this guide uses an
example that has only one banner ad. Hence, we log the ad response ID as the
banner_ad_response_id
key in the following snippet. Indeed you can create
multiple custom key / value pairs in Firebase Crashlytics for different ad types
and ad events (see
AdListener
for
ad's life cycle). Visit Customize your Firebase Crashlytics crash
reports
for more information on custom logging.
Add the following code to your MyActivity.java
. Essentially, it uses the
FirebaseCrashlytics.setCustomKey()
function in the onAdLoaded()
callback function to ensure that the ad has
loaded before attempting to call getResponseInfo()
.
Java
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_my); // Gets the ad view defined in layout/ad_fragment.xml with ad unit ID set in
// values/strings.xml.
adView = findViewById(R.id.ad_view); adView.setAdListener(new AdListener() {
@Override
public void onAdLoaded() {
String adResponseId = adView.getResponseInfo().getResponseId();
FirebaseCrashlytics.getInstance().setCustomKey(
"banner_ad_response_id", adResponseId);
}
}); // Start loading the ad in the background.
adView.loadAd(new AdRequest.Builder().build()); // Add a crash button.
Button crashButton = new Button(this);
crashButton.setText("Crash!");
crashButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
throw new RuntimeException("Test Crash"); // Force a crash
}
}); addContentView(crashButton, new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT));
}
Kotlin
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_my) // Gets the ad view defined in layout/ad_fragment.xml with ad unit ID set in
// values/strings.xml.
adView = findViewById(R.id.ad_view) adView.adListener = object : AdListener() {
override fun onAdLoaded() {
mAdView.responseInfo?.responseId?.let { adResponseId ->
FirebaseCrashlytics.getInstance().setCustomKey(
"banner_ad_response_id", adResponseId)
}
}
} // Start loading the ad in the background.
adView.loadAd(AdRequest.Builder().build()) // Add a crash button.
val crashButton = Button(this)
crashButton.text = "Crash!"
crashButton.setOnClickListener {
throw RuntimeException("Test Crash") // Force a crash
} addContentView(crashButton, ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT))
}
Congratulations! You will now see the most recent banner_ad_response_id
in the key section of crash sessions on your Crashlytics dashboard. Note that
some keys may take up to an hour to become visible in your dashboard.
... <看更多>
firebase crashlytics 在 capacitor-community/firebase-crashlytics - GitHub 的解答
Capacitor plugin for Firebase Crashlytics. Contribute to capacitor-community/firebase-crashlytics development by creating an account on GitHub. ... <看更多>
firebase crashlytics 在 Firebase Crashlytics - iT 邦幫忙 的解答
Connect to Firebase. 在使用Firebase的服務之前需先將App連結至Firebase,使用Android Studio的工具可以很快完成。 ... <看更多>