RocketChat / RocketChat/Rocket.Chat

PushNotification on iOS not working in background

Open
#19,615 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

subj: mobile
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Hi everyone,
I have an issue with the whitelabel version of RocketChat.
I followed the whitelabel documentation to customize my app, and set the push notification secs as explained: APN development and production key/certificate/psw, GCM API Key/Project number.

The problem is that, while the Android push notifications work just fine, when sending to iOS the Push notification service only works when the app is not in background.

Any suggestions?

Steps to reproduce:
  1. Set up push notification as explained on https://docs.rocket.chat/guides/developer/mobile-apps
  2. Set up APNKey, APNCert for production and development
  3. Send message to an account
Expected behavior:

When sending messages to the user, a push application should be displayed when the application is running both in foreground and background, on ios and android.

Actual behavior:

When sending messages to the user, a push application appears on android, whit the application in background and foreground, while on ios it appears only when the application is running foreground.

Server Setup Information:
  • Version of Rocket.Chat Server: 3.8.0
  • Operating System: Linux
  • Number of Running Instances: 1
  • Oplog: enable
  • NodeJS Version: v12.18.4
  • MongoDB Version: 4.0.21
Client Setup Information
  • IPhone 11 Pro:
  • Operating System: iOS 14.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the mobile-app setup guide linked in the issue and reproduce the notification behavior on iOS 14.2 with the app backgrounded. The issue names no source file or test; the work is complete when configured iOS push notifications appear reliably in both foreground and background.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.