-
Notifications
You must be signed in to change notification settings - Fork 21
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
Receive push notification without opening the app #2662
Comments
@sleidig Just to clarify, my understanding is that we need to send a notification to the user's device even when the app is completely closed (neither in the foreground nor the background). For instance, if the Aam Digital app isn't running at all, the user should still receive a notification such as: "There are new events in Aam Digital. Open the app now." Based on my observations of apps like Google Chat and Slack, notifications generally appear only when the app is running in the background or foreground. Enabling notifications while the app is entirely closed might require research. If this understanding is accurate, I’ll look into potential solutions to achieve this, and I believe Firebase Cloud Messaging Services might be helpful in resolving this. |
Yes, this is correct. It might also be acceptable for us to have system notifications (i.e. visible outside of the UI of the app) only while the app is running in the background. However, as we are running a PWA, not a native app, I am uncertain how reliable these would run. (This can be part of the related research maybe) |
Got it, thanks for clarifying. I'll look into this further to identify potential solutions. I'll also investigate whether Firebase Cloud Messaging Services is suitable for this use case. |
In other words, this is my understanding of Push Notifications so far
@sleidig @tomwwinter Please let me know if you have any thoughts/questions/directions I should research. Meanwhile, I am researching to answer the other open questions you have mentioned. |
Open-Source Alternatives to Firebase for Push Notifications
To me, Gotify and Pushy look like good option to try first due to:
@sleidig @tomwwinter Let me know what you think/suggest? |
Thanks for the good overview, @Ayush8923. Do the clients (i.e. our PWA) use the same standard receiving push notifications from either of these services? Or is the client implementation very different for Firebase and each of these options? What are the limitations regarding "segmentation" and "customizable" for Gotify and Pushy? Do you think it will be similarly possible/easy to implement our notifications requirement, including a per-user configuration which types of notifications a user wants to receive? (I am not completely sure yet whether this per-user configuration would/could be stored by Firebase/etc. or by our own service that will call Firebase to trigger notifications). With regards to the limitations on closed app/browser, I think the restrictions are probably acceptable. We can later on, once it's implemented, test and review how to best help users with keeping browser active in the background. |
Client Implementation Differences (Firebase vs. Gotify/Pushy)
Segmentation and Customization (Gotify/Pushy)Gotify:
Pushy:
@sleidig I have tried to answer your question based on my research. Please let me know if you have any questions/thoughts regarding this. |
@sleidig @tomwwinter, Did you get the chance to look into these alternative approaches? Which push notification implementation are we moving forward with? |
--> joint decision: We will implement this using Firebase for now. |
@tomwwinter I have a few questions and need to discuss a few things related to the push notification backend implementation:
|
As a user I want to get notified about new events automatically so that I know when to open the app without having to check for updates manually all the time.
For example: Receive a system (push) notification saying "There are new events in Aam Digital. Open the app now."
open questions:
The text was updated successfully, but these errors were encountered: