-
Notifications
You must be signed in to change notification settings - Fork 16
J.3 Receive Invitation
Firebase Invites is deprecated. It's functionality is moved into DynamicLinks ANE.
When a user selects an incoming app invite on their device if the user has not yet installed the app, they can choose to install the app from the Google Play Store or the App Store. Then, after the app is installed, or if the app was already installed, the app starts and receives the invitation along with the deeplink. Receiving the invitation ID happens inside the Dynamic Links ANE but these two ANEs are linked together which means that you will receive the Invitation ID only if you have the Invites ANE already added to your project. Otherwise, the invitation ID will be null.
// DynamicLinks class must be initialized right after Firebase.init(true); and as soon as possible.
DynamicLinks.init();
// You should immedietly listen for possible DynamicLinksEvents.INVOKE event
DynamicLinks.listener.addEventListener(DynamicLinksEvents.INVOKE, onDynamicLinksInvoke);
function onDynamicLinksInvoke(e:DynamicLinksEvents):void
{
trace("e.link = " + e.link);
trace("e.invitationId = " + e.invitationId);
}
Read this page to see what are the best usage practices for Firebase invites:
https://firebase.google.com/docs/invites/best-practices
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