Some Firebase JS SDK libraries (e.g. firebase-analytics, firebase-remote-config, firebase-performance) seem to require IndexedDB API to initialize. Is it possible to run these libraries and have the IndexedDB API disabled (i.e. for browsers without IndexedDB support)?
I've started to look through the Firebase JS SDK code as well, but wanted to see if anyone has a quick answer.
Cheers
Related
I want to use a JavaScript library in my mobile Flutter project. Here is the link for this library on github.
Library
How can I use this library and a function(aboutnumber()) from it in my project? How can I import this library to a project and how to access its function?
You can use https://pub.dev/packages/flutter_js package.
It allows to evaluate pure javascript code inside mobile and desktop flutter apps. By pure, I mean the package is not a browser engine, so no web API , localstorage or another browser api are available. But you can bundle some javascript code containing javascripts libraries like moment, ajv and maybe the one you related in your question if it relies only in javascript. The flutter_js injects into the javascript engine, things like console.log, xhr and fetch. But it is all. There is a send message channel which you could use to inject objects into the engine which you could provide objects which will be implemented and dart, but will be shared into the javascript global space.
In Flutter web, the javascript integration is possible using the package:js, mentioned in another answer.
Disclaimer: I'm the author of the flutter_js package
This is not possible on any platform other than the web, as described in the JS interop documentation.
On the Web, package:js can be used.
As mentioned in this other similar question, there's also webview_flutter, which embeds a whole web view onto Flutter, and that's an official Flutter package as well.
I've built a website from the ground up already but for an upcoming one I need to use Wix or Squarespace as well as Firebase. So I set about trying to figure out if I could mesh those platforms when I came across the answer to this question:
Can I store database information in Squarespace? A: Essentially no
Followed by this documentation from Squarespace FAQs.
I was a bit confused since Firebase uses Javascript to use Auth, Firestore, Functions etc. Even if you need to run server-side code you can make a call to Firebase via JS to run Node applications. So is it possible to use Firebase with Squarespace, if you're allowed to add custom JS to your site?
Yes, Firebase works fully client-side. The only backend code you write in Firebase you can deploy directly to Firebase.
You can follow the official JavaScript web guide for Firebase to get started with this.
I'm trying to develop an ocr app with the Nativescript plugin:
https://market.nativescript.org/plugins/nativescript-ocr
https://github.com/EddyVerbruggen/nativescript-ocr
and it seems that the example doesn't works or I'm doing something wrong. I read something about Firebase ML kit but I have no idea about that and if it works offline (Offline work is a must for me).
https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/ML_KIT.md
Could be deprecated the first plugin?
might I use firebase?
could it use with nativescript core (only js)?
It works offline?
Any idea about how to start?
Yes, the OCR plugin is kind of deprecated, not actively maintained anymore.
Firebase ML-Kit is recommended and it has different methods you could use for text recognition, one works on device and another on cloud. Refer the same read me you have linked in your question.
I have been using zapier on a paid plan for some time now with incredible results. But as a programmer, I have been trying to perform some advanced operations.
At this moment, I was wondering if it is possible to reference external libs or sdks like firebase or google spreadsheet APIs and use them inside a code (javascript) trigger or action. I need this to perform some verifications on an exiting code step I have.
David here, from the Zapier Platform team.
As the other answer mentioned, we don't support npm module is code steps. There's documentation about that here. It notes that you can make HTTP requests in code steps, so if your firebase endpoints are straightforward (and can be done without the aid of an SDK), you can do them by hand.
If you need an SDK, you'll need to create a custom app. You can keep it private for your own use and it'll have all the same rights and features as public apps. There are a couple of options here.
The best option is the CLI , which builds your app as a node module. This way, you write the whole thing in code and can include whatever you'd like!
If that doesn't work for some reason, we also have v2 of the platform (CLI is v3) that doesn't officially support modules, but there's an unsupported workaround.
Let me know if you've got any other questions!
Your question sounds like you want to stay inside the confines of the Code By Zapier step. The docs state this
Unfortunately you cannot require external libraries or install or import libraries commonly referred to as "npm modules". Only the standard node.js library and the fetch package are available in the Code app. fetch is already included in the namespace.
If you're willing to invest a few hours in learning the Zapier CLI you can write your very own app in Node.js and then use that. This has some other advantages. I just did that very thing with a simple Google timezone API call. The README on my git repo has all the links you need to the Zapier docs. The git repo might even serve as a template.
https://github.com/Rolias/timezone-zap-app
I need to create an internal admin app. The app needs to be able to:
For V1
- Wrap and execute javascript code
- Will not rely on any iOS code other than perhaps the code necessary to load the javascript.
- Uses local storage
For V2
- Work offline (which means javascript code needs to be loaded in)
Any ideas on how to go about implementing such a thing?
By far the easiest and best supported way is to use Apache Cordova. They did all the work of wrapping a Webview in a native app and have a rich set of plugins for integration with all kinds of mobile APIs.
Since the app will be running in an embedded browser you can simply access the normal Localstorage APIs.
The Cordova tutorial by #ccoenraets may be a good way to get started.
From my findings the following two are great solutions:
Ionic
Apache Cordova