-
Notifications
You must be signed in to change notification settings - Fork 16
L.2 Test Implementation
You don't have to wait for a crash to know that Crashlytics is working. You can use the SDK to force a crash. Create a button in your app and when it's hit, simply call Crashlytics.crash();
Note: Your app will shut down when the crash happens. So you need to re-run your app again so Crashlytics SDK can initialize again and find the chance to send the crash report to Firebase console.
import com.myflashlab.air.extensions.firebase.core.*;
import com.myflashlab.air.extensions.firebase.crash.*;
/*
First initialize FirebaseCore. You cannot use ANY of Firebase children unless
you have already initialized FirebaseCore successfuly.
*/
// Initialize Crashlytics anytime after a successful Firebase initialization.
Crashlytics.init();
// Force a crash after 10 seconds, just a test!
setTimeout(toCrash, 10000);
function toCrash():void
{
Crashlytics.crash();
}
If your forced crash didn't crash, crashed before you wanted it to, or you're experiencing some other issue with Crashlytics, you can enable Crashlytics debug mode to track down the problem. When you do that, you should use AndroidStudio logcat window or xcode debug console window to see the SDK debug logs.
When releasing your app, make sure the debug mode is off.
// pass true when initializeing the ANE and the debug mode will be on
Crashlytics.init(true);
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