Integrate firebase with nativescript - firebase

Firebase has an Android library. How can I integrate with nativescript?
There is no tutorial out there. I really need help for the setup and how to call those api.

I've just built nativescript-firebase, which is loads the Firebase Node.js SDK in a way that's compatible with NativeScript.
Also, Eddy Verbruggen has written nativescript-plugin-firebase which uses Firebase's corresponding Android and iOS SDKs.

Related

How do I secure firestore database for my React Native app? [duplicate]

My Expo based React Native app worked perfectly fine until I added Firebase App Check.
I am using Firebase JS SDK and not React Native Firebase because it is suggested here for cross platform development.
Now how can I get and then send context.auth (link) to Firebase Functions? Or How can I send what Firebase Storage needs to functions manually?
Storage seems to work fine with AppCheck and AppAttest enabled if it's not Enforced but as soon as I enforce it, the app throws a an error every time there is image load from storage that User is not authenticated.
https://console.firebase.google.com/u/0/project/myapp-4fa75/settings/appcheck
As I understand, you can't because the JS SDK uses reCAPTCHA and native apps have to use either SafetyNet (Android) or DeviceCheck or App Attest (iOS).
I think the only option is using react-native-firebase instead of JS SDK.
You'd have to use config plugins as described here and then configure the app-check module as described here.

how to use firebase phone aut on expo (react native 2022)

I'm new to expo, and I'm trying to make an application with login by firebase authentication by phone, however I can't find enough documentation
Has anyone successfully implemented firebase authentication in expo (SDK 44) without ejecting
I found this tutorial but it works only with firebase 8, and the current one is firebase 9.8.4
currently it doesn't work anymore
https://arjayosma.medium.com/set-up-firebase-phone-authentication-in-expo-sdk-37-without-ejecting-8a472460b1cf
Firebase phone authentication is not possible out of the box using the Firebase JS SDK. This because an Application Verifier object (reCAPTCHA) is needed as an additional security measure to verify that the user is real and not a bot in Firebase JS SDK workflow.
FirebaseRecaptcha in expo was used to compensate for this object. However, This module will no longer be available in SDK 48 . Apps can be built migrating to React native firebase

Do we need to enable offline persistence for React Native apps when using Cloud Firestore?

I saw Todd's video on enabling offline persistence on YouTube, in that he said it is not needed for Android and iOS apps but is required for Web.
But React Native is neither, so do we need to enable it or is it automatic??
React Native involved writing JavaScript for client apps, which means you're using the Firebase JavaScript APIs, which means you're subject to the implementation details of the Firebase web SDKs. So, if you're using the Firebase web SDKs, you need to explicitly enable offline persistence.

Do i need additional Firebase SDK for Firebase Dynamic Links?

My app already has integrated Firebase SDK for Crashlytics.
Is that SDK sufficient for implementing Firebase Dynamic Links feature or will I require an additional/separate SDK?
Each Firebase product comes with its own SDK. If you want to use Dynamic Links, you will have to include the specific SDK for iOS, Android, C++, or Unity. This is indeed in addition to the Crashlytics SDK you're already using.

where do I find firebase documentation for react native

I have installed firebase module for react native app
npm install firebase --save
what I'm looking for is the documentation for this module , I had searched many times but did't find any thing
The Firebase node.js client SDK is mostly a variant of the regular Firebase JavaScript client. You can find its documentation here: https://firebase.google.com/docs/web/setup. There is no specific documentation for React Native, although there is a blog post here: https://firebase.googleblog.com/2016/07/firebase-react-native.html
Firebase has not released any specific api for react-native. So you have to go with Web api of firebase to build apps in react-native.
https://firebase.google.com/docs/
Firebase has not released any specific api for react-native. So you have to go with Web api of firebase to build apps in react-native.

Resources