-
Notifications
You must be signed in to change notification settings - Fork 16
F.2 Init Crash
Crash is now deprecated. Use Firebase Crashlytics instead.
firebaseCrash.ane is automatically initialized as soon as your implement the ANE and its dependencies/Frameworks.
Firebase Crash Reporting creates detailed reports of the errors in your app. Errors are grouped into clusters of similar stack traces, and triaged by the severity of impact on your users. In addition to automatic reports, you can log custom events to help capture the steps leading up to a crash.
You can use this ANE to log custom events in your error reports. If you wish to log an event you only need to pass a string as the argument to log(), as shown in this example:
import com.myflashlab.air.extensions.firebase.crash.*;
Crash.log("my log msg");
Firebase Crash Reporting automatically generates reports for fatal errors (or uncaught exceptions). However, for you to be able to test the reporting, you can manually create a crash in your app and see the results in your Firebase Console in one or two minutes.
Crash.crash();
When calling the crash(), your iOS app will be forced closed! This behavior is to simulate a crash in your app/game. However, this will not force close your app on the Android side but it does initialize the crash reporting process.
When testing the ANE on iOS, you should notice that the crash report initiated by the crash()
method will not be uploaded to Firebase console unless you run the app again. On our tests, we noticed that the report is generated only if you run the app again without connecting it to the AIR debugger!
Enjoy building Air apps – With ♥ from MyFlashLabs Team
Introduction to Firebase ANEs collection for Adobe Air apps
Get Started with Firebase Core in AIR
- Prerequisites
- Add Firebase to your app
- Add the Firebase SDK
- Init Firebase Core
- Available ANEs
- Managing Firebase iid
Get Started with Authentication
- Add Authentication
- Init Authentication
- Manage Users
- Phone Number
- Custom Auth
- Anonymous Auth
- State in Email Actions
- Email Link Authentication
Get Started with FCM + OneSignal
- Add FCM ANE
- Init FCM ANE
- Send Your 1st Message
- Send Msg to Topics
- Understanding FCM Messages
- init OneSignal
- Add Firestore
- Init Firestore
- Add Data
- Transactions & Batches
- Delete Data
- Manage the Console
- Get Data
- Get Realtime Updates
- Simple and Compound
- Order and Limit Data
- Paginate Data
- Manage Indexes
- Secure Data
- Offline Data
- Where to Go From Here
Get Started with Realtime Database
- Add Realtime Database
- Init Realtime Database
- Structure Your Database
- Save Data
- Retrieve Data
- Enable Offline Capabilities
Get Started with Remote Config
- Add Storage ANE
- Init Storage ANE
- Upload Files to Storage
- Download Files to Air
- Use File Metadata
- Delete Files