Signal-iOS/Signal/test/util
Harry 6556f389c7
Rotate APNS tokens automatically when the NSE fails to receive notifications
* Allow using a transaction for checking APNS token

* Add APNSRotationStore

* add APNSRotationStoreTest

* Rotate APNS tokens in SyncPushTokensJob

* Mark NSE as having processed messages for token rotation

* Check for APNS token rotations after flushing incoming message queue

* pr comments

* Simplify APNS rotation conditions: we mark APNS as working when getting a push in either the NSE or the main app, and rotate if we missed a message since then.

* Mark APNS tokens as working if we ever get a push. Don't rotate known-good tokens.

* Added logging

* add remote flags to control behavior

* pr comments

* fix bad merge

* invert kill switch

* PR nit comments

* Avoid write transactions on the SyncPushTokensJob hot path

* Initial PR feedback, more to come

* Change of strategy: rotate if we have new messages to process on app startup

* PR comments

* use null for calltype column on incoming message rows
2022-12-19 11:10:15 -08:00
..
FTS Change license to AGPL 2022-10-13 08:25:37 -05:00
APNSRotationStoreTest.swift Rotate APNS tokens automatically when the NSE fails to receive notifications 2022-12-19 11:10:15 -08:00
ASWebAuthenticationSessionUtilTest.swift Support 3D Secure for card donations 2022-11-29 16:07:44 -06:00
BatchUpdateTest.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
ByteParserTest.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
CreditAndDebitCardsTest.swift Change CVV placeholder for Amex cards 2022-11-23 11:02:35 -08:00
DateUtilTest.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
DisplayableTextFilterTest.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
EmojiTests.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
ExceptionsTest.h Change license to AGPL 2022-10-13 08:25:37 -05:00
FunctionalUtilTest.m Swiftify a few phone number utility methods 2022-12-07 08:32:24 -06:00
GRDBFinderTest.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
GroupAndContactStreamTest.swift Move system contact names to ContactRecord 2022-10-26 15:00:36 -07:00
MiscTest.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
OWSOrphanDataCleanerTest.m Change license to AGPL 2022-10-13 08:25:37 -05:00
OWSScrubbingLogFormatterTest.swift Swiftify OWSScrubbingLogFormatterTest 2022-11-10 12:43:08 -06:00
QRCodeParserTest.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
RemoteAttestationSigningCertificateTest.m Change license to AGPL 2022-10-13 08:25:37 -05:00
SignalMeTest.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
StorySharingTests.swift Better multisend of text stories 2022-10-20 11:04:25 -07:00
StringAdditionsTest.swift Move SignalServiceKit string tests to correct file 2022-11-07 14:31:15 -08:00
UserProfileTest.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
UtilTest.h Change license to AGPL 2022-10-13 08:25:37 -05:00
UtilTest.m Remove redundant digitsOnly test 2022-11-11 14:25:45 -06:00