-
Notifications
You must be signed in to change notification settings - Fork 16
N.1 Add Performance
- Make sure you are considering the minimum requirements for running Firebase.
- Install the Firebase SDK.
- In the Firebase console, add your app to your Firebase project.
Before adding the Performance (or any of the other Firebase child ANEs) to your AdobeAIR app, you need to make sure you have setup the firebaseCore.ane correctly in your project. To add the Performance, you need to add the required ANEs and Frameworks to your project. These dependencies are explained in details in this document.
IMPORTANT: FirebasePerformance ANE has many APIs dependent on RemoteConfig. You must add all the dependencies and manifest configurations of RemoteConfig ANE before trying to run FirebasePerformance.
AIR manifest .xml file
Beside changes you need to make to your manifest .xml file when implementing firebaseCore.ane
and firebaseRemoteConfig.ane
, you need to add the following changes also to make Performance ANE work properly:
<!-- Required by the firebase_perf.ane -->
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<!--
Add this meta-data tag under <service android:name="com.google.firebase.components.ComponentDiscoveryService" android:exported="false">
You should have added the above service tag when you were implementing the FirebaseCore ANE.
-->
<service android:name="com.google.firebase.components.ComponentDiscoveryService" android:exported="false">
<!--
Other meta-data tags required by FirebaseCore and other ANEs
-->
<!--
Don't forget to add all the RemoteConfig dependencies and
manifest configurations
-->
<!-- Required by firebase_perf.ane -->
<meta-data
android:name="com.google.firebase.components:com.google.firebase.perf.FirebasePerfRegistrar"
android:value="com.google.firebase.components.ComponentRegistrar"/>
</service>
<!--
Required by firebase_perf.ane
Change "air.com.doitflash.firebaseCore" to your own applicationID but keep
".firebaseperfprovider" at the end. [your-app-id].firebaseperfprovider
-->
<provider
android:name="com.google.firebase.perf.provider.FirebasePerfProvider"
android:authorities="air.com.doitflash.firebaseCore.firebaseperfprovider"
android:exported="false"
android:initOrder="101"/>
<extensions>
<!--
Required ANEs for the Firebase Core ANE comes here first.
https://github.com/myflashlab/Firebase-ANE/wiki/A.4.-Initialize-Firebase-in-your-app
-->
<!--
Don't forget to add all the RemoteConfig dependencies first
https://github.com/myflashlab/Firebase-ANE/wiki/C.2-Add-Remote-Config
-->
<!-- Firebase Performance -->
<extensionID>com.myflashlab.air.extensions.firebase.performance</extensionID>
<!-- Dependency ANEs for Firebase Performance -->
<extensionID>com.myflashlab.air.extensions.dependency.firebase.perf</extensionID>
<extensionID>com.myflashlab.air.extensions.dependency.googlePlayServices.clearcut</extensionID>
<extensionID>com.myflashlab.air.extensions.dependency.googlePlayServices.phenotype</extensionID>
</extensions>
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