Commit Graph

30 Commits

Author SHA1 Message Date
Matthew Chen
aecaf50c7e "Bump build to 3.8.0.10." 2020-04-13 14:06:55 -03:00
Matthew Chen
4c629cad90 "Bump build to 3.8.0.9." 2020-04-13 14:06:50 -03:00
Matthew Chen
fcb2cf961a "Bump build to 3.8.0.8." 2020-04-09 21:41:26 -03:00
Matthew Chen
7f4f7372d9 "Bump build to 3.8.0.7." 2020-04-09 21:40:48 -03:00
Matthew Chen
b36a4d500b "Bump build to 3.8.0.6." 2020-04-09 20:55:55 -03:00
Matthew Chen
07e957b42b "Bump build to 3.8.0.5." 2020-04-09 20:54:58 -03:00
Matthew Chen
d6eb8e393c "Bump build to 3.8.0.4." 2020-04-08 17:04:25 -03:00
Matthew Chen
83a3a5210e "Bump build to 3.8.0.3." 2020-04-08 16:40:52 -03:00
Matthew Chen
5c8b1912a1 "Bump build to 3.8.0.2." 2020-04-07 17:41:16 -03:00
Matthew Chen
ac2ccf032c "Bump build to 3.8.0.1." 2020-04-04 14:28:27 -03:00
Matthew Chen
334a318802 "Bump build to 3.8.0.0." 2020-04-03 16:16:09 -03:00
Nora Trapp
275329cca0 "Bump build to 3.7.1.0." 2020-04-02 18:51:31 -07:00
Nora Trapp
b3d29612ca "Bump build to 3.7.0.10." 2020-03-30 13:25:28 -07:00
Nora Trapp
7868469372 "Bump build to 3.7.0.9." 2020-03-25 14:11:35 -07:00
Matthew Chen
f82bf0ef41 "Bump build to 3.7.0.8." 2020-03-21 22:34:36 -03:00
Matthew Chen
2c1cb3fd17 "Bump build to 3.7.0.7." 2020-03-20 20:26:46 -03:00
Nora Trapp
efc1ead63c "Bump build to 3.7.0.6." (Internal) 2020-03-19 11:08:21 -07:00
Matthew Chen
f5cefb412d "Bump build to 3.7.0.5." 2020-03-17 18:03:20 -03:00
Michael Kirk
730d3b8f71 "Bump build to 3.7.0.4." 2020-03-11 13:16:16 -06:00
Nora Trapp
e757087ad9 "Bump build to 3.7.0.2." (Internal) 2020-03-04 11:56:45 -08:00
Nora Trapp
73b6ae0a81 "Bump build to 3.7.0.1." (Internal) 2020-03-04 10:03:58 -08:00
Matthew Chen
6b8daf6670 "Bump build to 3.7.0.0." 2020-02-28 17:51:39 -03:00
Matthew Chen
d4b9741e02 "Bump build to 3.6.0.3." (Internal) 2020-02-24 20:54:44 -03:00
Matthew Chen
8733e116c1 "Bump build to 3.6.0.2." (Internal) 2020-02-24 15:35:24 -03:00
Matthew Chen
9f1483e038 "Bump build to 3.6.0.1." 2020-02-20 12:19:58 -03:00
Nora Trapp
f6216f3c4e PR Feedback 2020-01-30 11:45:11 -08:00
Nora Trapp
97d0ca1b0d Crash if we receive a message in the NSE before we intend to support it. 2020-01-30 11:45:11 -08:00
Nora Trapp
9e182e65f2 Handle received notifications while the app is running. 2020-01-30 11:44:42 -08:00
Nora Trapp
6437730084 Handle the fact that multiple notifications can be processed in the same instance of the NSE 2020-01-30 11:44:42 -08:00
Nora Trapp
88ac10de05 Notification Service Extension
The NSE should only run on iOS 13.3 or later where the "filtering" entitlement
is available since our notifications don't contain any content and will often
not trigger any user visible content. We control this by setting the deployment
target to iOS 13.3.

This does not handle calls as it's currently impossible to wake the main app or
launch CallKit from within the NSE. Should we reach a point where we need to use
this extension in production the service will need to be able to differentiate
between call and non-call messages and deliver them as VOIP or Vanilla pushes as
appropriate. Alternatively, Apple may introduce some way for us to signal the
main app that a call message has been received.

This does not currently address the potential for the NSE and the main app to be
running and trying to process messages at the same time. As long as the
websocket is connected and the main app is processing messages in a timely
fashion the NSE will never be called since the service will not send pushes for
these messages, but censorship circumvention users and users where the websocket
is disconnected for some reason will legitimately receive pushes and we will
want to process those messages. How we will handle these cases requires further
thought since just terminating the NSE when the app launches is not sufficient.
We could potentially do something like terminate the NSE everytime the main app
runs the message fetcher job which should only happen if either the user
pulls-to-refresh on the conversation list or the websocket is actively connected
and receiving messsages. I plan to address this in a follow-up pull request.

Currently this code will not ever be run since the service never sends vanilla
push notifications. Eventually we will need to add logic into the main app to:
a) detect we're on iOS 13.3 or later and b) update a flag on the service telling
it to stop using VOIP pushes for non-call messages. The API for requesting this
from the service does not yet exist.
2020-01-30 11:44:41 -08:00