Rank 4: Virtual Machine
i have tried using the email messaging and push messaging of appwrite in the appwrite cloud, yet its not working, but everytime i run the code, i do get notification sent user but its not sending at all
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 4: Virtual Machine
i have tried using the email messaging and push messaging of appwrite in the appwrite cloud, yet its not working, but everytime i run the code, i do get notification sent user but its not sending at all
Rank 4: Virtual Machine
here is my error log
Notifications sent to user 2348148422710 with partnership status: trueRank 4: Virtual Machine
@Steven , yes i have done that, i no longer get this issues Failed to process user 2349034286339: Cannot read properties of undefined (reading 'length') but i'm email are not sending out yet i'm geting Notifications sent to user 2348148422710 with partnership status: true
what does the message status and logs show?
Rank 4: Virtual Machine
Yet, no email and push notification its received....
@Steven
Rank 4: Virtual Machine
PROVIDER (firebase, sms, email)` is set on my console,
User has subscribe and they all have their target.
sent a test message from console to user device via the Firebase Provider, user did receive the message,
sent another text message from console to user email address via the email provider (mailGun), user did receive the email in their inbox.
but why is the function not working,
@Steven, why is this happening???
you're not showing the details about the message from the Message section of your project in the Appwrite Console
Rank 4: Virtual Machine
Rank 4: Virtual Machine
Rank 4: Virtual Machine
Rank 4: Virtual Machine
Rank 4: Virtual Machine
these are all mesage sent via the Appwrite Cloud Console
so i assume you're not seeing new messages show up in the Messages table.
It's because your code is wrong. You're handing the result of find() wrong
Rank 4: Virtual Machine
yes
Rank 4: Virtual Machine
how do i fix that, can you please help me out on it
Rank 4: Virtual Machine
@Steven
Rank 4: Virtual Machine
hello, please i'm still anticipating your response
i already told you. look at how you're using find()
Rank 4: Virtual Machine
bro, this is the target for email {"$id":"6669064d0025cce36414","$createdAt":"2024-06-12T02:22:05.721+00:00","$updatedAt":"2025-01-28T07:45:38.773+00:00","name":"zionnite","userId":"2349034286339","providerId":"668295190028be64732b","providerType":"email","identifier":"zionnite@gmail.com","expired":false}
Rank 4: Virtual Machine
its returning a valid target array, so what's happening.
no...look at your code and your data again
Rank 4: Virtual Machine
i'm no longer user TARGET i'm now using the user on the messaging.createEmail()
but this is the log output
Failed to process user 2349034286339: Invalid `users` param: Value must a valid array and UID must contain at most 36 chars. Valid chars are a-z, A-Z, 0-9, and underscore. Can't start with a leading underscoreemail Message: CREATEDFailed to process user 2348148422710: Invalid `users` param: Value must a valid array and UID must contain at most 36 chars. Valid chars are a-z, A-Z, 0-9, and underscore. Can't start with a leading underscoreemail Message: CREATEDFailed to process user 2349027243282: Invalid `users` param: Value must a valid array and UID must contain at most 36 chars. Valid chars are a-z, A-Z, 0-9, and underscore. Can't start with a leading underscoreRank 4: Virtual Machine
what do you think of this @Steven
Rank 4: Virtual Machine
Hello @Steven,
using find() was not the issues, but i don't know why passing targetArray to the target object of the messaging.createEmail() was not working, but everything started working when i focus on using the user object in the messaging.createEmail() and you must pass the user array just pass in the userId with the angle bracelet,
Rank 4: Virtual Machine
thanks @Airi The Chinchilla🐭 for showing concern for my issues