-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Push Notifications Stuck in 'Sent' Status with Parse Server (Postgres), Not Delivered to Devices #9507
Comments
Thanks for opening this issue! |
Are you able to reproduce this without using the Parse Dashboard push UI, for example in Cloud Code or the REST API UI in Parse Dashboard? To determine whether this is a dashboard or server issue. If you can, please post the code. |
This is my Cloud code:
}); ` info: Ran cloud function sendPushFromDeviceClass for user undefined with: 2. Direct /push API Test: 3. Device Class Data: The following log entry shows the Device object retrieved during the push notification process: The server logs also show a Postgres query limitation: Both Cloud Code and /push API calls appear to execute successfully, as indicated by the responses and logs. I can successfully see the push notification pop-up when sending directly from the Firebase Console. |
Could you clarify for each of the 4 cases:
|
@AnahitaHonarmandian |
Issue Description
Push notifications sent from the Parse Dashboard remain stuck in the "sent" status and do not get delivered to devices. While using Postgres, the logs show the error:
Postgres doesn't support this query type yet ["e_NgpzQw8xiY8...(all the tokens I got)"].
Despite the curl test succeeding and getting a positive response from the push sending function in the code ({ success: true, message: "Notification sent to devices." }), the notifications do not show up on devices.
Switching to MongoDB is not an option because the server hardware does not support AVX instructions, resulting in an illegal instruction (signal=ILL) error.
Steps to reproduce
Set up a Parse Server with Postgres as the database.
Register a device and get the FCM token.
Try sending a push notification from the Parse Dashboard.
Observe that the notification status in the dashboard remains stuck on "sent" and does not deliver.
Actual Outcome
Parse Dashboard shows notifications stuck in the "sent" status.
Notifications do not appear on registered devices.
Logs include the error:
Postgres doesn't support this query type yet ["e_NgpzQw8xiY8...(all the tokens I got)"].
Expected Outcome
Notifications should be delivered to the registered devices.
Server
Parse Server version: 7.4.0
Parse Dashboard version: 6.0.0
Operating system: Debian GNU/Linux 12 (bookworm)
Local or remote host: Local server
Database
System: Postgres
Database version: 15.3
Local or remote host: Local
Client
SDK: JavaScript
SDK version: 9.6.1 (Firebase Messaging)
Logs
From the Parse Server logs:
Postgres doesn't support this query type yet ["e_NgpzQw8xiY8..."]
From the JavaScript console:
Push notification response: Object { success: true, message: "Notification sent to devices." }
The text was updated successfully, but these errors were encountered: