Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

179
Views
Sending local notifications with Firebase/Firestore Cloud Functions expo

I am currently using expo to develop an app. I'm currently prompting the user to enter a time they want a notification to be sent to them. I take that time and save it in firestore. I'm currently able to access the time with

db.collection("users")
    .doc(auth.currentUser.uid)
    .get()
    .then((doc) => {
      return doc.data().time;
    });

my issue is now using that data in expos notification function inside the trigger

Notifications.scheduleNotificationAsync({
    content: {
      title: "App",
      body: "Daily Reminder",
    },
    trigger: {
      hour: "",
      minute: "",
    },
  });

Im trying to put the returned value inside the hour and minute from the db but it doesn't seem to be working. The .then() returns a promise and i'm not sure how to handle it. I tried changing the .then() to async and await but still having trouble.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!