-
Notifications
You must be signed in to change notification settings - Fork 16
I.1 Add Dynamic links
- 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 Dynamic Links (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 Dynamic Links, you need to add the required ANEs and Frameworks to your project. These dependencies are explained in details in this document.
AIR manifest .xml file
Beside changes you need to make to your manifest .xml file when implementing the firebaseCore.ane
you need to add the following changes also to make the Dynamic Links ANE work properly:
<!--
Add this meta-data tag under <service android:name="com.google.firebase.components.ComponentDiscoveryService" android:exported="false">
You should have added the above service tag when you were implementing the FirebaseCore ANE.
-->
<service android:name="com.google.firebase.components.ComponentDiscoveryService" android:exported="false">
<!--
Other meta-data tags required by other ANEs.
-->
<!-- Required by firebase_dynamicLinks.ane -->
<meta-data
android:name="com.google.firebase.components:com.google.firebase.dynamiclinks.internal.FirebaseDynamicLinkRegistrar"
android:value="com.google.firebase.components.ComponentRegistrar"/>
</service>
<android>
<manifestAdditions>
<manifest android:installLocation="auto">
<application>
<!--
Other settings required by the Firebase core or other ANEs...
Change the main activity tag and include the scheme information
to your app.
-->
<activity>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<!-- Your complete app package name -->
<data android:scheme="air.com.doitflash.firebaseCore" />
<!-- Your website domain address -->
<data android:scheme="http" android:host="www.myflashlabs.com" />
<data android:scheme="https" android:host="www.myflashlabs.com" />
</intent-filter>
</activity>
</application>
</manifest>
</manifestAdditions>
</android>
<iPhone>
<InfoAdditions>
<!--
Other settings required by the Firebase core or other ANEs...
-->
<!-- Required by firebaseDynamicLinks.ane (don't change the key, just change the value) -->
<key>com.myflashlabs.firebase.deepLinkURLScheme</key>
<string>dlscheme</string>
</InfoAdditions>
<requestedDisplayResolution>high</requestedDisplayResolution>
<Entitlements>
<!--
Other settings required by the Firebase FCM or other ANEs...
-->
<!--
Go to your Firebase console/dynamicLinks and create
your URL Prefix, it looks like: https://YOUR_URL_PREFIX.page.link/xxxx
You must set the associated-domains to "YOUR_URL_PREFIX.page.link"
-->
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:YOUR_URL_PREFIX.page.link</string>
</array>
</Entitlements>
</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
-->
<!-- To support Firebase DynamicLinks -->
<extensionID>com.myflashlab.air.extensions.firebase.dynamicLinks</extensionID>
<extensionID>com.myflashlab.air.extensions.dependency.firebase.dynamicLinks</extensionID>
</extensions>
NOTE: When you change the iOS Entitlements
part, you will not be able to compile your app on iOS and the AIR compiler will throw an error saying that your provision does not match or is invalid or something like that. To fix this problem, you need to read the next document where we are talking about what change you need to make to your iOS app ID in your Apple Developer Console.
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