-
Notifications
You must be signed in to change notification settings - Fork 16
I.4 Receive Dynamic Links
As soon as you initialized the DynamicLinks ANE, (DynamicLinks.init();
) you must listen to the DynamicLinksEvents.INVOKE
event. This listener will tell you if your app has been opened manually or because of a dynamic link click.
DynamicLinks.listener.addEventListener(DynamicLinksEvents.INVOKE, onDynamicLinksInvoke);
function onDynamicLinksInvoke(e:DynamicLinksEvents):void
{
trace("e.link = " + e.link);
trace("e.invitationId = " + e.invitationId);
}
if e.link
is not null, then you can decided where to take your users based on the deeplink address.
if e.invitationId
is available, you will know that this link is sent by someone inviting you to use the app. You can sue this id to identify that.
If your app has been launched because of a dynamic link, this event will be called but you you need to make sure you are listening to this event very soon. If you are initializing DynamicLinks too late in your app, you may miss the startup dispatch of this event! The best place to initialize dynamic links is in the constructor of your app documentClass right after you initialized the Firebase Core ANE.
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