I have scoured the Internet but couldnt find a solution for my problem and as such would be grateful for any help or directions as to how to acomplish my goal or if it is even possible to do so.
So the problem I am trying to solve is as follows:
In my application I let user select files using Expo DocumentPicker and want to get the using fetch over http in other part of the application.
Is it possible to setup a localhost http server inside the react native appliction form which it will be posible to serve the aforementioned files? If so what is the best way to do so?
I have struggled with this for some days now and will be thankfull for any help offered.
Related
I have a client-side rendered react project and I need to provide a template builder for the user where they can configure their emails. They should be able to see the preview and then hit send, the mail gets sent.
I do not see the documentation for client-side integration of MJML. Can someone please help me with the same?
I think what you are looking for is mjml-react if you are working with reactjs. I'm not sure about the limitations (haven't used the package).
I would like to set up a notifications system to be used when a new update of my progressive web app is available.
The pwa uses react and has node (with express) as the backend.
I followed google's guide to push notifications (link) and everything works fine when sending a push message from the devTools' service workers tab.
The problem is that the guide ends there and i would like to be able to send a notification to every subscribed user.
I tried to look for a solution and i found out that Firebase Cloud Messaging could do what i need, but when i tried to implement it i got a bit confused as it seems quite different from what I've done in the guide mentioned above.
I've also looked at other guides here and there but they don't do what i need and some of them doesn't even work.
Can someone please explain me what should i do the get that result?
Thanks in advance for the help, i hope my question isn't too stupid '^^
I am building a Cordova mobile app for Android and want to add an event listener to my client-side JavaScript such that a function is called whenever data is written to a section of my firebase database. I know this can be done in node using firebase-functions and the onWrite events. However in trying to follow the getting started documentation (https://firebase.google.com/docs/functions/get-started) for using the firebase CLI, I have hit a roadblock in that I am trying to write client side code, so I cant use
const functions = require('firebase-functions');
because of the "require". I am looking at work-arounds for this like using requirejs but I'm not sure this is appropriate as I don't know which scripts I am trying to load in order for the fire-base functions to work. Is there a better way to do this ? Or is it not appropriate to be trying to use firebase-functions with client side java-script in the first place?
Inexperienced developer so I was hoping there was an easier way then having to make a separate project to use as a server, and a better way than having the client ping the firebase database every second to see if it has updated. Any advice greatly appreciated.
You can't use firebase-functions on the client. It's only for use with backend code deployed to Cloud Functions.
Client code using the Firebase SDK doesn't have the same capabilities as Cloud Functions triggers. That is to say, you can't write client code that triggers the same way as a Realtime Database trigger. You will need to write your client code using the capabilities offered by the client SDK, which involves setting up listeners at locations of the database you're interested in.
I’ve looked at the storage api’s for both react-native and expo and I’m struggling to find a suitable way to structure my app.
I’ve made an app for my workplace in which we scan equipment and record the data. At the moment I’m using firebase to upload the data and store on their servers.
My boss has asked whether we can implement a way of storing the data locally if the user has no access to wifi and then upload the data upon internet reconnection.
I’m not sure where to start with this. I understand that I can use NetInfo and add an event listener to monitor the connection. However I’m not sure how I would persist any scanned data with the opening and closing of the app and such.
If anyone could help point me in the right direction, it would be greatly appreciated it.
Thanks
I am trying to allow users to upload large files without tying up my servers for an extended amount of time. I thought using dropbox as file storage might be a good solution. My plan is to use javascript to have the client-side connect directly to dropbox, so that my server is not affected.
I have been trying to find a current javascript dropbox api, but have not had much success. I tried using dropbox-js, but it seems that it is using an outdated version of the API as I get the following error with my current test: {"error": "You're using an older version of the Dropbox API with a new API key. Please use the latest version."}
Does anyone know a fairly simple way to accomplish this task?
Set up your application as a Folder app. If things go wrong, at least you won't blow up people's Dropboxes.
Follow these directions for obfuscating your API key and secret.
Use writeFile to upload the files, and then use makeUrl with the downloadHack: true option, then send the URL to your server.
You'll need the git version of dropbox-js to use downloadHack until the 0.7.0 release comes out.