Lion Studios
  • LionSDK Documentation
    • 📦Getting Started
    • Analytics
      • Validation
        • Event Validation
        • Lion Analytics QA Tool
        • Looker Events QA
      • A/B Testing
        • AB Test Tips (Experiment Best Practices)
      • Progression Event
      • Economy Event
      • Monetization Event
      • Advanced Ad Events
      • Interaction Events
      • Social Events
      • Debug Events
      • Other Events
      • Custom Events
      • API
        • Events
          • AbCohort
          • AppOpenShow
          • AppOpenEnd
          • AppOpenClicked
          • BannerRevenuePaid
          • BannerShowRequested
          • CharacterCreated
          • CrossPromoLoad
          • CrossPromoLoadFail
          • CrossPromoShow
          • CrossPromoStart
          • CrossPromoShowFail
          • CrossPromoEnd
          • Achievement
          • CrossPromoClick
          • DebugEvent
          • EconomyEvent
          • ErrorEvent
          • FunnelEvent
          • ShopEntered
          • Options
          • ProductViewed
          • GiftReceived
          • GiftSent
          • Heartbeat
          • ItemCollected
          • InAppPurchase
          • InterOpenStart
          • InterOpenLoadFail
          • InterOpenClicked
          • InterOpenRevenuePaid
          • InterOpenShow
          • InterOpenShowFail
          • InterOpenEnd
          • InterstitialClick
          • InterstitialEnd
          • InterstitialLoadFail
          • InterstitialLoad
          • InterstitialRevenuePaid
          • InterstitialShow
          • InterstitialShowFail
          • InterstitialStart
          • InviteReceived
          • InviteRewarded
          • InviteSent
          • GameStarted
          • FeatureUnlocked
          • NotificationOpened
          • MissionAbandoned
          • MissionCompleted
          • MissionFailed
          • MissionStarted
          • MissionStep
          • LevelAbandoned
          • LevelComplete
          • LevelFail
          • LevelStart
          • LevelStep
          • LevelUp
          • SkillUsed
          • NewPlayer
          • HandAction
          • SkillUpgraded
          • CharacterUpdated
          • PowerUpUsed
          • PredictionResult
          • RewardVideoEnd
          • RewardVideoOpportunity
          • RewardVideoClick
          • RewardVideoRevenuePaid
          • RewardVideoShow
          • RewardVideoShowFail
          • RewardVideoCollect
          • RewardVideoStart
          • Social
          • SocialConnect
          • Support
          • UiInteraction
          • ItemActioned
          • CharacterDeleted
          • AppOpenStart
          • AppOpenShowFail
          • AppOpenLoadFail
          • AppOpenLoad
          • InterOpenLoad
          • RewardVideoLoadFail
          • RewardVideoLoad
        • All Event Parameters
        • Helper Functions
        • Events Embedded
      • Experiment Events
    • Features
      • Remote Configs
        • Balancy Adapter
          • [WIP] - AB Experiments (Balancy)
        • Remote Configuration
        • Firebase
          • AB Experiments (Firebase)
        • Satori
          • A/B Experiments (Satori)
        • LiveOps Remote Config
          • Test Adapter
      • Loading Scene
      • Ads
      • IAP Validation
      • Adapter Stabilizer
      • Cloud Build
      • Options Menu
      • WhoAmI Service
    • Third-party SDKs
      • Amazon Publisher Services (APS)
      • Adjust
      • MAX SDK
        • Max Consent Flow
      • Facebook
      • Helpshift - Customer Support
    • Jenkins Build Server Solution Documentation
      • Administration of Jenkins Slack Trigger
      • Screenshare Into Jenkins Build Agents
      • Common Jenkins Build Issues
      • Jenkins Slack App Usage Guide
    • Detected Issues
      • API Level is too low
      • Publishing Settings Issue
      • Android & iOS Resolver Settings
      • SDK Settings Mismatch
      • Facebook Client Token Empty Issue
      • Adjust Id Empty Issue
Powered by GitBook
On this page
  1. LionSDK Documentation
  2. Features
  3. Remote Configs

Firebase

PreviousRemote ConfigurationNextAB Experiments (Firebase)

Last updated 3 months ago

Introduction

Firebase SDK allows developers to:

  • Change the behaviour and appearance of the game remotely and do A/B testing. (Firebase Remote Config)

  • Get clear, actionable insights into app issues with crash reporting. (Firebase Crashlytics)

  • Get insights on app usage and user engagement. (Firebase/Google Analytics)

Install Firebase SDK

  • Open the Firebase tab in LionStudios/Settings Manager menu

  • Click the “Install Firebase” button

  • Wait a few seconds for the installation to start

After installation, you can see Firebase bundle as “Installed” in Package Manager/My Registry. Firebase bundle has total of four firebase packages dependencies in it i.e,

  • Firebase Core

  • Firebase Remote config

  • Firebase Analytics (aka Google Analytics)

  • Firebase Crashlytics

Note: Please keep only one installation of Firebase either LionStudio one or from following firebase own documentation. If you want to use Firebase SDK from it’s own site then you can skip this step and continue to next step, but first you’ve to install Firebase Core, Remote Config, Analytics and Crashlytics SDK.

Note: After installing Firebase SDK, you will see some errors in the console (such as “Unable to load Firebase app” or “Firebase dependency check failed”). This is normal. Firebase throws these errors on installation because it requires some files to be imported. This will be completed in the next steps.

Setup

After installing Firebase SDK, open the Firebase tab in LionStudios/Settings Manager . You will find warnings as shown in below image.

To resolve these warnings, Ask your studio manager for Firebase configuration files for Android & iOS.

  • Use Browse button to locate the firebase files. Imported files should be added at the root of Assets folder.

Then:

  • For Android, run Android resolver.

  • For iOS, you don’t have to do anything. If you followed all the steps correctly, “Setup is Complete” message will appear as shown below.

Note: If “Setup is Complete”, doesn’t show up, and instead “Verify Setup” shows up, click “Verify Setup”. This will check firebase integration once more. If there are some issues, they will be shown in console windows.

Implementation

To use Firebase code, follow these Firebase documentation links for all three Firebase packages for the Unity engine.

  • Firebase Remote Config

  • Firebase Crashlytics

  • Firebase Analytics (Google Analytics)

Don’t call Firebase functions until Lion Core is initialized. You can ensure it like this:

void Awake(){    
		if (!LionCore.IsInitialized)    
		{        
				LionCore.OnInitialized += delegate        
				{            
						Debug.Log("Call firebase functions here"); 
				};    
		}
}

If you use a loading scene that waits for Lion Core to be initialized, then you can always call Firebase in the following scenes. See our provided Loading Scene: Loading Scene

  • Introduction
  • Install Firebase SDK
  • Setup
  • Implementation