-
Notifications
You must be signed in to change notification settings - Fork 16
Home
Thanks for your interest in our Firebase Air Native Extension. This Wiki includes all the information you would need to setup Firebase services in your Air app. But before talking about the tech side, let's take a few minutes and see why Firebase is such a big deal.
In Google words, Firebase is:
Firebase gives you the tools to develop high-quality apps, grow your user base, and earn more money. We cover the essentials so you can monetize your business and focus on your users.
Firebase gives you the tools to develop high-quality apps, grow your user base, and earn more money. It covers the essentials so you can monetize your business and focus on your users.
We believe that the Firebase project is awesome and will help mobile app developers BIG time. It will cut down the amount of time you would spend on setting up server-side logics and besides that, it ensures that your content will always be available to your users as fast as possible. No matter how large your app would grow, your Firebase server-side configuration can also grow with that and you don't have to worry about server costs and setup troubles.
Moreover, Firebase pricing plan is unbelievably generous! You can start with a free plan and upgrade only if your app is a hit. You pay as you go, risk free! Below is the list of all the current services which Firebase provides that we have developed AIR Native Extensions for.
- Analytics Reimagine analytics for mobile
- Cloud Messaging (FCM) Deliver and receive messages across platforms reliably
- Authentication Reduce friction with robust authentication
- Firestore Store and sync app data at global scale
- Realtime Database Store and sync app data in realtime
- Storage Store files with ease
- Remote Config Customize your app on the fly
- Crashlytics Keep your app stable
- Dynamic Links Send users to the right place inside your app
- Invites Empower your users to share your app
With the Firebase Air Native Extension, we are providing you with native access to all these Firebase features.
You will simply save a lot of time and money if you decide to use Firebase. Just do the calculation! Making the decision to use Firebase is entierly up to you. Though, there are a few kinds of questions you might face soon or later when you are learning more about Firebase which I try to answer them in simple words right here:
- GCM is depricated in favour of FCM. Does that mean that I am forced to move to Firebase? No, you're not forced! Our GCM ANE will continue to work as Google has said that. If you are using GCM, and you have already setup your server with that, you can continue working with that with no problem. However, we don't sell the GCM ANE anymore nor we would update it anylonger.
- Admob is now part of Firebase. Does it mean that I have to enable the Firebase ANE in my app? No you don't, we have updated our Admob ANE so it can be used with or without Firebase. It's totally optional.
- My app is already online working with my own VPS/dedicated server, can I move to Firebase? Of course you can! You just need to make sure you are transferring the data correctly to your Firebase database/storage. It can be a hard transition based on how your app works, but it's doable. besides that, you can move only part of your data to Firebase, for example you can move your server side files only to Firebase and leave the database as it is, or vice versa.
- We have many users and my app is sometimes slow for server connections, Does Firebase help with that? Yes, that is one of the main reasons that Firebase was created anyway. It scales automatically no matter how large your audience would be. You don't have to think about CDNs and server farms at all, Firebase infrastructure will take care of all those tasks without you even noticing.
We have transpiled every Firebase library to ActionScript through our pile of Firebase ANEs. You can use only the ANEs you need. All of our Firebase ANEs will run over the FirebaseCore.ane. For instance, if you wish to use the Firebase Cloud Messaging service, FCM, you would need to embed the Core Firebase ANE first and then embed the FCM ane and then, you will have access to all the features that FCM provides.
To begin with, read the get started section on the right side of this Wiki page. Also you will enjoy watching this introduction video:
DISCRIMINATION: Firebase SDKs are developed by Google and they own every copyright to the Firebase "native" projects. However, we have used their "compiled" native SDKs to develop the ActionScript API to be used in Adobe Air mobile projects. Moreover, as far as the documentations, we have copied and when needed has modified the Google documents so it will fit the needs of Adobe Air community. If you wish to see the original documentations in Android/iOS, visit here. But if you are interested to do things in Adobe Air, then you are in the right place.
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