-
Notifications
You must be signed in to change notification settings - Fork 1.4k
F/socketnotifications #2197
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
F/socketnotifications #2197
Conversation
|
@mattadatta Cool! @GOVINDDIXIT what's your take on this PR? How are you going to handle push notifications without FCM? |
Yes the notification support will definitely gonna break in fdroid build, looks this can be helpful for it. Will definitely try to have it once this work is available. Thanks @mattadatta |
|
We're going to reevaluate this in the future, in case we think on improving our gateway solution. |
@RocketChat/ReactNative
New feature request + potential implementation: DDP-based websocket push notifications on Android.
A use-case I have for the Rocket.Chat React Native client (specifically on Android for now) is using a private Rocket.Chat server on a WAN-access-restricted network (thus cutting off communication with Google's FCM servers). It would be nice to be able to get push notifications while in this kind of environment, while doing our best to adhere to Android's background scheduling limitations.
This PR contains a potential implementation of that feature, with tests on-device working well, but I'd like input from the community on how it should be best implemented.
To complete this feature, I took the following steps:
Additionally, I have modified a bit of the JS source to enable / disable this websocket push notification service manually in the settings panel.
I would definitely appreciate some feedback from the community about any caveats/pitfalls when trying to reimplement this feature in this manner. I'm sure there are some things I'm missing in regards to making this a perfect 1-to-1 re-implementation of push notifications, and the DDP client code I've got in there currently also feels a bit awkward (I only imported it directly into the project to make upgrading its dependencies easier)