10

I am struggling a little bit while trying to implement firebase in unity, firebase do not yet provide a unity sdk and I was considering these options:

1) create native plugins for iOS and Android that wraps the firebase sdk and methods that I need

2) use IKVM to create a dll from the firebase .jar, I know someone has done it but I have not read yet about a 100% working method

3) build everything from scratch on top of the firebase REST api

what do you advice? have you got some experience with the topic, someone out there has made firebase work with unity?? :D

thanks

5
  • 2
    Hi user1279694, Firebase employee here. I'd definitely pick either option 1 or 3. For option 3, be sure to use the REST streaming API, which offers the same real-time benefits as the native (JavaScript, iOS and Android) APIs. Commented Mar 21, 2015 at 15:02
  • Hi Frank, thanks for the answer! :) is there a firebase unity sdk in pipeline? thank you Commented Mar 21, 2015 at 15:27
  • There is no Unity SDK in the pipeline at present. There have been a few requests in the past and yours will be added to the feature discussion.
    – Kato
    Commented Mar 23, 2015 at 16:44
  • say @FrankvanPuffelen surprised you didn't add the Unity news on here big guy!
    – Fattie
    Commented Mar 3, 2016 at 16:23
  • also @FrankvanPuffelen I direct your attention: stackoverflow.com/questions/35777072/…
    – Fattie
    Commented Mar 3, 2016 at 16:24

4 Answers 4

10

Firebase has officially Unity supported now.

https://firebase.google.com/docs/unity/setup

Import FirebaseAnalytics.unitypackage(Download From Firebase Website Or direct link https://dl.google.com/firebase/sdk/unity/firebase_unity_sdk_1.0.0.zip)

6

You can look this beta tool, with this u can build for Android and IOS from Unity.

2
  • 1
    Thanks for answering Mario, I was just looking for old questions to update. :-) For those interested, the Firebase Unity plugin linked uses the first approach mentioned by OP: it wraps the native Android and iOS libraries from Firebase. Commented Feb 18, 2016 at 10:46
  • 1
    Wow that is great! Thank you for linking it! Is there any experience with the stability and performance of this "beta tool" approach? - I use Firebase (Auth/Database/Storage) within two Android apps and I would love to use it also from inside Unity...
    – Tino
    Commented Jun 28, 2016 at 8:26
1

Each Plugin have firebase fun.

https://github.com/unity-plugins/Firebase-Admob-Unity Google Firebase Unity Admob Plugin

Google Firebase Unity Admob Plugin provides a way to integrate firebase admob ads in Unity3D Game and u3d app. You can use it for Unity iOS and Android App with the same c# or js code.It support all native firebase admob features such as Native Express Ad

Google Firebase Unity Admob Plugin Features

Platforms supported in one plugin :

Android, Based Admob SDK v9.0 (part of Google Firebase service) iOS, via SDK v7.8.0 Support all native events AdRequest targeting methods,such as children target,test mode Not need change Android package name Very simple API Based on FireBase SDK Version Ad Types:

Banner(All Banner Type and Custom banner sizes) Interstitial (text, picture, video) Rewarded Video Native Express Ad

https://github.com/unity-plugins/google-service-unity

Google Service Unity Plugin

Google Service Unity Plugin is a Unity Plugin For Google Service.Include Google Admob Unity,Firebase Analytic Unity,Google Game API Unity. Login,Achievement,Leaderboard,Event,Quest,Snapshot,RealTimePlayGame,TurnbasedPlayGame API are supported and easy to use with c# or js.

0

Currently it's very easy to add Firebase to your Unity project as long as you follow specific prerequisites. If you're building for Android or iOS then you're good to go, but the same doesn't happen if you're building for WebGL.

According to the documentation, it can be done following the next steps

  1. Create a Firebase project
  2. Register your app with Firebase
  3. Add Firebase configuration files
  4. Add Firebase Unity SDKs
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.