-
Notifications
You must be signed in to change notification settings - Fork 16
I.2 Init Dynamic links
firebaseDynamicLinks.ane can be initialized similar to other Firebase child ANEs. simply by calling the DynamicLinks.init(); method. However, if you are planning to use DynamicLinks in your app, you need to let the Firebase Core ANE know this by passing true
when initializing the Core.
Firebase.init(true);
NOTE: Make sure you have already setup the manifest .xml file explained in the former document.
On the iOS side, you need to activate Associated Domains from your apple developer console. To do that, simply go to your iOS App IDs page and find your app ID. When you click on your app ID, list of enabled services will be shown. If you are seeing Associated Domains disabled, click the edit
button at the bottom of the list and on the next page, simply enable the associated domains. When that's activated, all your old provision files will expire.
Go to your provision profiles and regenerate them (development/adhoc/distribute), download them and replace them with the old ones you have in your project.
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.
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