I am developing a mobile app with Robovm for ios.
I need to use Firebase in my app.
Is there any way to use Firebase in Robovm?
Update: we have added Firebase Analytics to our Robovm app and documented how to do that at https://www.squins.com/knowledge/adding-firebase-analytics-to-a-robovm-ios-app/
Original reply:
You will have to create bindings manually.
Some instructions to get started: https://github.com/MobiDevelop/robovm/wiki/How-are-bindings-to-existing-native-frameworks-generated%3F
On their Gitter chat-room, another libgdx developer is trying to achieve exactly that and he is being helped out by the maintainers of Robovm :-).
https://gitter.im/MobiDevelop/robovm?at=58d043dab809ca5f4a654424
Related
I will build an offline app using expo react native is that possible ?
if yes can anyone please tell me how ?
Did you take a look here. I thik you already asked this ony a comment on one of our previous questions.
For the offline features maybe this can help to.
Please check out:
https://docs.expo.dev/guides/using-firebase/
TLDR: If you'd like to use Firebase in the Expo Go app with the managed workflow, they recommend using the Firebase JS SDK. It supports Authentication, Firestore & Realtime databases, Storage, and Functions on React Native. Other modules like Analytics are not supported through the Firebase JS SDK, but you can use expo-firebase-analytics for that. If you'd like access to the full suite of native firebase tools, we recommend using the bare workflow and react-native-firebase, because we cannot support this in the Expo Go app currently.
I'm trying to install Firebase in React Native. But I wasn't able to get the process right. Can anyone please tell me the full correct way of integrating firebase in React Native( NOT EXPO ).
Thanks in advance!
You should consider installing react-native-firebase
and for full documentation you can visit here.
If you are starting to integrate firebase and also you are new with React Native then you should consider the starter kit from react-native-firebase.
I found this blog by Florian Marcy quite useful where there are steps to create a firebase project, a react native app and then subsequently the integration part.
You can refer this if you are looking for an end-to-end process.
On the official documentation of Firebase Authentication, the guide is only available on how you can get the googleAccessToken on native Android & iOS. No solution is available for Unity on their official guide.
The closest solution I have found is to use the Google Play Services plugin for Unity to get the access token, which is not a good solution for the cross-platform as the following plugin is deprecated on the iOS platform. So yah, your code will not work on iOS.
Also, I believe it's an expensive solution to add a plugin for a "googleIdToken".
This process is complicated and Firebase documentation is not helping.
To address this issue Google recently released Google Sign-In plugin for Unity.
You can find detailed instructions on the read me file.
https://github.com/googlesamples/google-signin-unity
The fire base documentation seems to have a unity SDK to achieve what you're wanting to do.
You then include the GoogleService-Info.plist for ios.
https://firebase.google.com/docs/unity/setup
https://firebase.google.com/docs/unity/setup#add_the_sdk_to_your_app
the GoogleService-Info.plist for ios is in your google console.
I'm trying to integrate Firebase into my expo app using the react-native-firebase framework which has several advantages over the regular firebase package when it comes to react-native apps.
However, I'm running into difficulties since the instructions say I must add the GoogleService-Info.plist to ios/[YOUR APP NAME]/GoogleService-Info.plist, and expo apps don't have an ios folder from what I understand.
Am I pretty much screwed or is there a solution for this?
As the react-native-firebase documentation says, you need to eject your app if you want to use this library with expo. Be mind that eject action is not reversible. More info here and here and here.
If you use Expo and would like to use this package, you'll need to
eject. If you do not want to eject, but wish to make use of features
such as Realtime Database (without offline support) & Authentication,
you can still use the Firebase Web SDK in your project.
Today, you can't have the Firebase react-native sdk with expo. And this is not planned according to: https://expo.canny.io/feature-requests/p/full-native-firebase-integration.
So you have to play only with the javascript sdk from Firebase.
Cloud Firestore is new, it will be better for the javascript sdk for offline and sync.
The author of this thread: Fresh Detached Expo + RNFirebase not running on Android has managed to get it working with the Detached ExpoKit - so it's not a full ejection and keeps the expo features.
I have asked for the steps he took so we can see about getting something added to our docs and possibly a Detached ExpoKit version of our starter app.
See the expokit detaching docs for information about ExpoKit.
It's in progress --
https://blog.expo.io/using-firebase-in-expo-e13844061832
Using Firebase in Expo
And how we plan on adding it to the client 😁
We are super excited to announce that we will be rolling out a suite of Unimodules that will provide you with easy access to native Firebase features! initially you will only be able to use these in a detached ExpoKit App. But over time we will be working to add these to vanilla Expo.
TL;DR
Here are the modules, you will need to detach to add them for now:
App/Core
Analytics
Authentication
Cloud Firestore
Cloud Functions
Instance ID
Performance Monitor
Realtime Database
Cloud Storage
Remote Config
Firebase Cloud Messaging
Remote Notifications
Dynamic Linking
Invites
Crashlytics
Also TL;DR
Here is a boilerplate: https://github.com/EvanBacon/expo-native-firebase
Update 02-12-2021
Guys expo's eas-build is now public. You can add custom native codes and use react-native-firebase. Here is the link to a youtube tutorial. The video is short and super easy to follow. Here is the link to the docs
Previous answer
If you are using Firebase using the mobile configuration, it does not work, but it worked smoothly when I tried the web configuration. Here is the youtube tutorial. Watch from 38:20 to set up.
I managed to get a working set of react-native with redux, firestore and expo. See Code example at Github.
But it costs the offline-persistence (see https://github.com/firebase/firebase-js-sdk/issues/436). So from my point of view it costs performance, because i need to be online to get a full working app with firestore and react-native.
I'm using firebase auth service in my mobile App. Now I'm trying to create a web page using angular-dart. Unfortunately I could not find any guide for email-password firebase authentication sample for angular-dart, like angularfire2 (https://github.com/angular/angularfire2/tree/master/docs). Please help me.
There is package:angular_fire, which is being built by Matan (an AngularDart team member). I'm not sure if it has email+password auth yet, though.
If not, you'd have to roll your own component for this. Outside AngularDart, this is how you'd do that. It should be relatively straightforward to make this into an AngularDart component.
Some time has passed, there are now good examples. FirebaseExtended GitHub Repo has examples for everything Firebase.
The auth example from the repo is here