element-hq / element-hq/element-ios

Notifications does not work in big rooms like Matrix HQ

Open
#3,868 0 comments 0 reactions 0 assignees View on GitHub
A-Notifications os:iOS13 X-Regression Z-GetYourUpdates
Dominant language
Swift
Stars
1.8k
Forks
544
PR merge metrics
PR metrics pending

Description

The notification extension displays only "Message".

The reason is an out of memory crash that occurrs in background. App extensions have a limited amount of available memory. This limit depends on the device (12MB on a 5s, 16MB on a X). Deserialisation of all state events of such rooms requires more RAM than what is available.

This bug has been discovered while implementing the new background service (#3579) but it exists since we moved to iOS13.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing notifications in a large room such as Matrix HQ and read the background service work referenced in #3579. Investigate the iOS 13 notification extension's state-event deserialization and memory limit; done means large-room notifications display the actual message without an out-of-memory crash.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.