0

I am building a ticketing application that listens to Gmail mailbox, basically, every time an email is received a new document in a collection should be created that stores the mail body subject and the attachments

I don't have experience in Node js

is it possible to call a Flutter web app page example myapp.web.app/email-scan

using scheduled cloud function every 10 minutes

1 Answer 1

2

Is it possible to call a Flutter web app page example myapp.web.app/email-scan?

Yes, it is totally possible. Since we use Node.js in Cloud Functions for Firebase, you can, for example, use the axios library to issue calls to an URL.

Here is an example: Calling a 3rd party api through a cloud function in firebase with AXIOS POST

Sign up to request clarification or add additional context in comments.

8 Comments

I wrote a get method using Axios and it works fine. but the Function execution took 72 ms. Finished with status code: 200 so Dart code can't do the job in this short time
I would like to do the server job in Dart so I want to execute a Dart code that triggers from nodeJs each 5 minutes
You can extend the time out duration of your Cloud Function as explained here firebase.google.com/docs/functions/…
But 72 ms means that your code is not correctly taking into account the asynchronous aspect of the operations. Can you share your entire CF code
exports.listFruitEurope2 = functions.region('europe-west1').https.onCall(async (data, context) => { const response = await axios.get( 'vous-project-manager.web.app', ) console.log(response); return null; });
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.