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

133
Views
expo sendPushNotificationsAsync fails silently

After invoking sendPushNotificationsAsync I'm expecting tickets to be returned. Instead I am not getting any tickets returned.

Invoking the following function: (notice console.log(ticketChunk); not returning anything). Why am I not getting any tickets returned in this function and without triggering any errors?

const sendNotitifications = (messages) => {
    let chunks = expo.chunkPushNotifications(messages);
    let tickets = [];

    console.log("chunks: ",chunks);

    (async () => {
        for (let chunk of chunks) {
            try {
                let ticketChunk = await expo.sendPushNotificationsAsync(chunk);
                console.log(ticketChunk);  // <-- returns nothing
                tickets.push(...ticketChunk);
            } catch (err) {
                console.log(err);
            }
        }
    })();

    console.log("tickets: ",tickets);

    let stackTickets = [];
    for (let [i, ticketChunk] of tickets.entries()) {
        let chunk = chunks[i]
        ticketChunk.forEach((ticket, i) => {
            stackTickets.push({
                stack: chunk[i].data[StackID],
                ticket: ticket
            });
        });
    };

    console.log("stackTickets: ",stackTickets);

    return stackTickets;
};

Yields the following:

chunks:  [
  [
    {
      to: 'ExponentPushToken[XXXXXXXXXXXXXXXXXXX]',
      sound: 'default',
      body: 'Time for Cheese!',
      data: [Object]
    },
    {
      to: 'ExponentPushToken[XXXXXXXXXXXXXXXXXXX]',
      sound: 'default',
      body: 'Time for Stackeroni!',
      data: [Object]
    }
  ]
]
tickets:  []
stackTickets:  []
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!