Commit Graph

611 Commits

Author SHA1 Message Date
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
Nora Trapp
c618de14fa Merge branch 'release/3.2.1' into release/3.3.0 2020-01-24 21:41:09 -08:00
Nora Trapp
1895eb1c80 RingRTC v0.3.3 2020-01-24 19:54:33 -08:00
Matthew Chen
a392d49cc0 Avoid String.prefix() crash. 2020-01-24 18:47:28 -08:00
Nora Trapp
142e0e471b Update pods 2020-01-22 09:05:01 -08:00
Nora Trapp
4f3993e5e2 finalize Argon2 parameters 2020-01-22 09:05:01 -08:00
Nora Trapp
b7411bcb40 Implement final KBS master key encryption 2020-01-20 16:16:57 -08:00
Michael Kirk
942d912a6f update libPhoneNumber 2020-01-16 11:41:46 -07:00
Michael Kirk
0971fc73d9 update to using https for public repos 2020-01-16 11:05:55 -07:00
Matthew Chen
72f912dce3 Versioned profile changes, etc. 2020-01-08 13:54:54 -03:00
Michael Kirk
1cd03b157a fix test build
remove unnecessary system libraries include
2020-01-07 15:22:20 -07:00
Nora Trapp
94bc6a26ef Update to SignalRingRTC 0.3.2 2020-01-03 12:12:06 -08:00
Nora Trapp
9c7d1a34a5 Update pods 2020-01-02 16:40:30 -08:00
Orta Therox
f1993e7c79 Convert to using cocoapods-binary for ZXing 2020-01-02 12:03:57 -08:00
Orta Therox
469e169962 Convert to just using CocoaPods for dependencies 2020-01-02 12:03:57 -08:00
Nora Trapp
6299b7506d Using RingRTC podspec to make swift version independent (currently using dev
version of v0.2.0)
2020-01-02 12:01:53 -08:00
Matthew Chen
29150102cb Revert group and profile changes. 2019-12-11 20:41:54 -08:00
Matthew Chen
1817b6b395 Update and fetch versioned profiles. 2019-11-21 13:27:59 -03:00
Matthew Chen
f8c170a785 Respond to CR. 2019-11-20 14:34:24 -03:00
Matthew Chen
add3d0956b Disable bitcode. 2019-11-20 14:11:58 -03:00
Matthew Chen
4813491a26 Versioned profiles, part 1. 2019-11-19 13:41:29 -03:00
Michael Kirk
56c54f8305 update SCK 2019-11-14 14:42:49 -07:00
Matthew Chen
7f9459b39a Update Cocoapods. 2019-11-07 17:25:06 -03:00
Matthew Chen
6b8708433c Delete old and unused one-time prekeys.
Thanks Mikunj Varsani for the bug report.
2019-11-02 08:16:41 -03:00
Michael Kirk
6f721348b0 update pods 2019-10-17 10:20:07 -06:00
Michael Kirk
983f4c91fd update pods 2019-10-11 10:56:29 -07:00
Matthew Chen
c781004f4a Update Cocoapods 2019-10-08 12:27:10 -03:00
Matthew Chen
3db3fa9734 Respond to CR. 2019-10-08 09:17:28 -03:00
Matthew Chen
efc79165e2 Intern the blurhash sources. 2019-10-08 09:17:28 -03:00
Matthew Chen
e9952ddeec Add blur hashes to outgoing attachments. 2019-10-08 09:17:28 -03:00
Matthew Chen
e4d942ef68 Add blurhash pod. 2019-10-08 09:17:27 -03:00
Nora Trapp
2ecb94a5ee Fix stale hash reference for YDB pod 2019-10-05 18:58:01 -07:00
Matthew Chen
23a93181f2 Suppress YDB queue handling during YDB-to-GRDB migration. 2019-09-25 10:10:04 -03:00
Michael Kirk
c33b974233 update pod 2019-09-24 12:21:45 -03:00
Nora Trapp
ab2ff4db32 Rewrite audio progress view in swift, add play/pause animation 2019-09-23 17:03:03 -07:00
Nora Trapp
5997c520a5 Update deployment target to iOS 10 2019-09-23 16:59:33 -07:00
Michael Kirk
c3d5aeb64d performance tests only build active arch 2019-09-21 10:11:12 -07:00
Michael Kirk
3eca69ab58 update pod 2019-09-19 16:15:33 -07:00
Michael Kirk
f0bb99b73f get back on mainline GRDB 2019-09-04 18:23:01 -06:00
Michael Kirk
6eb1595e87 update GRDB 2019-09-04 18:23:01 -06:00
Michael Kirk
843339a150 perf test for message processing 2019-09-04 18:21:40 -06:00
Michael Kirk
e6be86bcb1 Fix SignalTest target
So we can respect the value in headers too
2019-08-29 12:07:51 -06:00
Michael Kirk
967780b5e7 Run perf tests with real-world optimizations 2019-08-29 09:47:52 -06:00
Michael Kirk
e211ae52c8 demote some error logging to warn for things which we know can happen 2019-08-28 18:17:41 -06:00
Matthew Chen
26d1fabba5 Update CocoaLumberjack pod. 2019-08-27 16:57:49 -03:00
Matthew Chen
80b2167cce Update SignalMetadataKit pod. 2019-08-27 16:40:57 -03:00
Michael Kirk
15a00a4365 update libPhoneNumber, fix +383 validation 2019-08-20 13:03:44 -06:00
Nora Trapp
3526c98521 Update SignalCoreKit 2019-08-01 13:18:46 -07:00
Nora Trapp
5573f208d6 Fix OWSAES256Key equatable 2019-07-31 23:34:04 -07:00
Matthew Chen
ac72675033 Update Cocoapods. 2019-07-29 14:59:04 -03:00