binwiederhier / ntfy

Send push notifications to your phone or desktop using PUT/POST
https://ntfy.sh
Apache License 2.0
18.57k stars 731 forks source link

Issue with Self-Hosted Ntfy Server and Self-Developed iOS Ntfy App Unable to Receive Instant Notifications #1124

Open leochenchiayu opened 5 months ago

leochenchiayu commented 5 months ago

:question: Question

We built our self-hosted ntfy server and developed our own iOS app using the ntfy iOS source code. We verified that the iOS device can receive instant notifications from APNS and Firebase. Additionally, we confirmed that we can use the Firebase Python API with a key file to push notifications successfully.

However, we encountered an issue when we followed the ntfy documentation and added the line firebase-key-file: "/etc/ntfy/my-adminsdk-nkruw-4712500.json" in server.yml. This method does not work.The iOS device was not able to receive instant notifications. Only after refreshing, it could get previous messages. Therefore, We have confirmed that the problem lies between the server and Firebase since other methods (APNS, Firebase, Firebase Python API) work.

We checked the log but didn't find any errors. It only shows that the message was sent to Firebase. We are wondering if there is something missing in the server.yml configuration or if there are other problems. Is there any method to check if the messages are successfully sent to Firebase?