-
Notifications
You must be signed in to change notification settings - Fork 16
J.1 Add Invites
Firebase Invites is deprecated. It's functionality is moved into DynamicLinks ANE.
- 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.
- Make sure you have added your app SHA certificate fingerprints on the Android side. (Firebase console > select your app > on the
Overview
page select thesettings
option of your Android app > On the general tab of the settings page, scroll down and you will see aADD FINGERPRINT
button. If you don't know how to find out your app's SHA-1 and SHA-256, read this post
Before adding Invites (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 Invites, you need to add the required ANEs and Frameworks to your project. These dependencies are explained in details in this document.
Adding Invites is very similar to other Firebase child ANEs but it is slightly different and that's because Invites is built on top of Dynamic Links. This means that you will not be able to use this ANE unless you have already added Dynamic Links to your app. So, if you are new to firebase, leave this page here and instead go to the Dynamic Links wiki and first make sure you have it all setup and ready. Then, get back here and continue with Invites.
In the Firebase iOS SDK you downloaded, go to Invites\Resources
and copy all the *.bundle
files to the bin folder of your AIR project. (next to your main app's .swf file)
GINInviteResources.bundle
GoogleSignIn.bundle
GPPACLPickerResources.bundle
AIR manifest .xml file
To setup Invites in your app, you first need to setup Firebase Core, then you must add changes explained for Dynamic links. Finally you need to add the following to your manifest to make sure Invites can work correctly in your app:
<iPhone>
<InfoAdditions>
<!--
Other settings required by the Firebase core or other ANEs...
-->
<!--
Required by firebaseInvites.ane
Change google client id to your own. Find it in GoogleService-Info.plist
under <key>REVERSED_CLIENT_ID</key> tag
-->
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>google</string>
<key>CFBundleURLSchemes</key>
<array>
<string>com.googleusercontent.apps.163763113291-5j7w6ara6rgafjub3636in7h8q2lgbeb</string>
</array>
</dict>
</array>
</InfoAdditions>
</iPhone>
<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
Make sure you have already added DynamicLinks to your project before trying to use the Invites.
-->
<!-- To support Firebase Invites -->
<extensionID>com.myflashlab.air.extensions.firebase.invites</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