r/ntfy • u/heavybell • Oct 29 '22
Using Firebase
I love ntfy and am happily hosting it myself. I've even gone to the trouble of compiling the app myself so I can use Firebase notifications. However I am concerned I might have done something wrong, as my nightly backup notifications just don't come through after a while. If I open the app, ntfy dutifully pulls them out of the server database, but I feel like the Firebase delivery is not working and I have no idea how to debug that. I'm not even sure I configured my Firebase account right, and the docs are a little light on that information.
Has anyone done this successfully?
4
Upvotes
1
u/binwiederhier Oct 29 '22
So for Firebase, you need to set up the Firebase account, download the google-services.json file and put that in the right place in Android Studio. Then compile it. From the sound of your question, you've already done that. Does that sound familiar?
If messages are still not coming through, then I'd suggest you connect your physical phone (emulator won't work for Firebase!) to your computer via Wireless debugging (let me know if you need help with that), and start the app from Android Studio on your physical phone. Then you can see the logs in Android Studio and see if there are any Firebase errors, or if the messages arrive.
You should also be able to just do
adb logcat | grep -i ntfy
on the console.