Skip to content

Configuring FirebaseANE

Tua Rua edited this page Sep 14, 2020 · 12 revisions

Android

Create your Android app in Firebase Console

https://raw.githubusercontent.com/wiki/tuarua/Firebase-ANE/images/firebase-project-screen-android.png

Ensure you enter your AIR appId prefixed with air eg air.com.tuarua.firebaseane.example

Download google-services.json and save in your project root folder.

Apply the configuration

Change directory into the native_extension/ane folder eg

cd /MyMac/dev/AIR/Firebase-ANE/example
air-tools apply-firebase-config google-services.json

iOS

Create your iOS app in Firebase Console

Ensure you enter your AIR appId with NO air prefix eg com.tuarua.firebaseane.example

Download and copy GoogleService-Info.plist into the src folder of your project. You will need to package this file in the root when packaging your AIR app.

https://raw.githubusercontent.com/wiki/tuarua/Firebase-ANE/images/plist.png

Clone this wiki locally