At the moment I am using react-native-firebase 4.3.8, but I noticed that google has updated firebase (firestore in particular), which holds some interesting new features. I was trying to use firebase from google directly, but it gives me errors (can't find variable: document) for example.
Is it possible to use firebase instead of react-native-firebase, so the updated features are available.
I know that react-native-firebase are working on an update (v5) to include those features.
To use Firebase within your React Native application you need to bind the JavaScript code to the underlying native iOS/Android SDK. When you use Invertase's react-native-firebase library they take care of that for you.
You can definitely use another library that does the same, or roll your own. But recommending a library is off-topic on Stack Overflow, and showing you how to do this yourself is a bit too broad for a question here.
If you're having problems getting the Invertase library to work, it is best if you share the minimal code that reproduces where you are stuck. That way we can see what you tried, and help you get unstuck.
If none of these apply, you will have to wait until the feature you want it available in the library. Note that Invertase's react-native-firebase library is open source, so they might be taking pull requests in case you want to help.
Related
I want to remove backgrounds from images in my react native app. I am already using Firebase in my app, so I tried to find something in Firebase Machine Learning that can do that, but unfortunately not. It seems that the function was moved to a separate SDK, ML Kit. Is there any way to use this selfie-segmentation feature with react-native? Or is there something similar in firebase?
You can use ML Kit wrapper for RN called https://github.com/a7medev/react-native-ml-kit
In your case, unfortunately, it is not implemented yet in this library but you can add it following this PR https://github.com/a7medev/react-native-ml-kit/pull/20/files
firebase_messaging gives MISSING_INSTANCEID_SERVICE error.
This is due to the fact that the device does not have Google services.
There are many solutions, but on pure android. Are there any solutions on Dart?
Is there any way to check if Google play is available on the device without using the library?
If you don't want to use lib, you can use method channel to call native code check,
refer native code here
I am having a really difficult time navigating the API reference. The old AWS SDK for java used to have all used classes labeled with their proper parameters, errors thrown, and return values. I am not finding this with Amplify.
Currently I am trying to understand the Amplify.storage class for Android. The closest reference I can find for it is here,
https://aws-amplify.github.io/amplify-js/api/classes/storage.html
The problem is that it does not describe the function used by their tutorial, Amplify.Storage.downloadFile()
This all seems to be the javascript implementation of this and not the java based SDK so maybe that is the problem. I've been digging around on google and I can't find anything useful, is there reference material out there that I am just not finding or is this what we have to work with?
As I dig I keep getting linked back to the tutorial which is very frustrating because I want more information than what the tutorial provides.
The Amplify Android project does not currently publish its Javadoc.
I have created an issue for this on the Amplify Android GitHub repo.
For the time-being, your best bet is to read the source code, which does contain JavaDoc. The API for the storage category is here.
I'm relatively new to Firestore and I am currently trying to build a Flutter app on it. I have hit a roadblock where I realize that I must utilized Firestore Cloud Functions in order to perform server-side data manipulation.
Unfortunately, there are not a lot of great resources and videos describing the process to set this up (at least for someone super new to software development like me). However, I was able to find this video https://www.youtube.com/watch?v=DYfP-UIKxH0 that goes over how to set up a Firestore app using Typscript. As such, I have two questions:
Will setting up the environment to write cloud functions be the same here for Firestore as it will be for Firebase?
Do I want to write these functions in Javascript or Typescript?
Yes. When you use Cloud Firestore, you're essentially using Firebase, and the setup for Cloud Functions is the same between them. If you run into problems, post a questions with the minimal steps needed to reproduce that problem.
That's your call, as recommending one technology over another is off-topic here on Stack Overflow. That said, most developers coming from a background with strictly typed languages may prefer typescript.
I´m creating an app with nativescript and i need push notifications, so i read about onesignal and it looks promissing, so i have created an account with them, follow the instructions for ios, then they sent you here where you are suppose to configure the nativescript SDK for your mobile app. Well, i´m not using typescript, so my first question is:
Where is the javascript version to configure the nativescript SDK,
does anyone knows?
My second question is related with the data that my app receives, which is throught a database, i have a webapp and everytime a user INSERTS in the database, a listview in the nativescript app is "fed"...but when this happens, i need the script from onesginal to send the push does anyone ever used it?
Thanks for your time
Regards
TypeScript makes it easy to maintain large scale JavaScript applications, NativeScript or Angular itself is written in TypeScript for same reason. So personally I would recommend getting started with TypeScript for better.
If you want to convert TypeScript into JavaScript, simply remove all typings from your code, replace import statements with require. At least this should work in NativeScript environment as it supports most of ES6 syntaxes. If you prefer ES5, simply use any online compiler to get JS version of same code, TypeScript Playground for instance.
Also NativeScript docs got examples for extending app delegate in JavaScript if you need further guidance on this.
I don't think the plugin provides any interface to handle notification data at the moment. If you are familiar with the native apis, you may directly access them from JavaScript to access the data sent from server. If possible, I would recommend migrating to Firebase which supports end to end integration with proper examples.