I’ve installed rocket.chat using docker compose. Currently I’m in the process of persuading our small business team to switch over from using Whatsapp and FB Messenger. It has taken months but I am _so_close.
Myself and my co-founder have been using it for personal chats for about two months and she is mostly convinced that’s it’s a good idea to switch the entire team.
There’s just one blocker: notifications. She was complaining that Rocket.Chat notifications are too slow and makes short conversations get spread out over hours.
We just sat down together. I sent her a message on Whatsapp, she got a notification instantly. She checked the message, locked her phone and I sent her another message. Again, received instantly. We repeated the experiment with Messenger, same result.
Finally we tested with Rocket.Chat. I sent her a notification. We waited… nothing. After about 30 seconds she opened the app and my message is there, but no notification. She locked her phone and I sent another message. Still nothing. We waited a few minutes and finally the notification did show up so notifications are working.
Also note that if I “Send a test push to my user”, I receive that instantly on the Android app.
I’ve checked around and found some discussions like this one:
And also this PR from V3.4.0 which references some
The settings in question:
NOTIFICATIONS_SCHEDULE_DELAY_ONLINE NOTIFICATIONS_SCHEDULE_DELAY_AWAY NOTIFICATIONS_SCHEDULE_DELAY_OFFLINE
I cannot find any reference to these anywhere else though.
So two questions:
- Do these settings exist recent Rocket.Chat releases?
- Will changing them make mobile notifications get delivered fater? If not is there some other way?
- How do I change them? Can I set them as environment variables in my docker compose?
version: "3.7" services: rocketchat: image: registry.rocket.chat/rocketchat/rocket.chat:latest restart: unless-stopped volumes: - /mnt/containers/rocketchat/app/uploads:/app/uploads labels: traefik.enable: 'false' environment: MONGO_URL: "mongodb://mongodb:27017/rocketchat?replicaSet=rs0" MONGO_OPLOG_URL: "mongodb://mongodb:27017/local?replicaSet=rs0" ROOT_URL: http://localhost:3021 PORT: 3021 depends_on: - mongodb expose: - 3021 ports: - 3021:3021 mongodb: image: mongo:5 restart: unless-stopped volumes: - /mnt/containers/rocketchat/data/db:/data/db - /mnt/containers/rocketchat/data/configdb:/data/configdb entrypoint: [ "/usr/bin/mongod", "--replSet", "rsmongo", "--bind_ip_all"] environment: MONGODB_REPLICA_SET_MODE: primary MONGODB_REPLICA_SET_NAME: rs0 MONGODB_PORT_NUMBER: 27017 MONGODB_INITIAL_PRIMARY_HOST: mongodb MONGODB_INITIAL_PRIMARY_PORT_NUMBER: 27017 MONGODB_ADVERTISED_HOSTNAME: mongodb MONGODB_ENABLE_JOURNAL: "true" ALLOW_EMPTY_PASSWORD: "yes"