session-ios/SignalServiceKit/src/Util
Michael Kirk df15c904bc Rework push registration
== Account Registration ==

Not complete until push tokens are uploaded

== Remote Notifications Registration ==

Extracted from PushManager

- wait for notification-settings registration to complete before
  requesting push tokens, otherwise it's possible token requests will
  be ignored.

- Less state required for push notification callbacks, specifically, we
  no longer need to ensure we've created a promise before the
  registration delegate methods get called.

- no more TOCFuture in Signal-iOS (still in SSK for now). It's not in
  cases of inexplicable behavior - one a recently, push notification
  premature free, in redphone, and more popular use, and I've seen two
  futures inexplicably being nil.  Instead, let's consolidate around
  PromiseKit for popularly used, maintained, strongly-typed futures.

- separate logic for registering for vanilla push/voip notifications
  (few dependencies) from responding to UILocalNotifications (lots of
  dependencies). Ultimately I'd like to consolidate the remaining
  UILocalNotifications logic with the existing NotificationsManager

== Misc ==

more debug logging
more uniform logging
remove stale logic around newly registered user

// FREEBIE
2017-10-12 12:02:22 -04:00
..
constraints Respond to CR. 2017-09-20 09:19:15 -04:00
AppVersion.h Import SSK (and history) into Signal-iOS 2017-07-21 13:55:01 -04:00
AppVersion.m Rework push registration 2017-10-12 12:02:22 -04:00
Asserts.h Respond to CR. 2017-09-19 17:45:18 -04:00
Cryptography.h aes-gcm via openssl 2017-08-21 16:37:16 -04:00
Cryptography.m cleanup per codereview 2017-08-21 16:37:16 -04:00
DataSource.h Fix build break. 2017-09-19 09:35:33 -04:00
DataSource.m Fix build break. 2017-09-19 09:35:33 -04:00
FunctionalUtil.h Respond to CR. 2017-09-20 09:19:15 -04:00
FunctionalUtil.m Import SSK (and history) into Signal-iOS 2017-07-21 13:55:01 -04:00
iOSVersions.h Respond to CR. 2017-09-20 09:19:15 -04:00
MIMETypeUtil.h Apply DataSource to message sender. 2017-09-11 10:20:48 -04:00
MIMETypeUtil.m Apply OWSFail() in more places. 2017-09-11 10:20:48 -04:00
NSArray+OWS.h Respond to CR. 2017-09-20 11:48:37 -04:00
NSArray+OWS.m Respond to CR. 2017-09-20 11:48:37 -04:00
NSData+Base64.h Respond to CR. 2017-09-20 09:19:15 -04:00
NSData+Base64.m Import SSK (and history) into Signal-iOS 2017-07-21 13:55:01 -04:00
NSData+hexString.h Respond to CR. 2017-09-20 09:19:15 -04:00
NSData+hexString.m Import SSK (and history) into Signal-iOS 2017-07-21 13:55:01 -04:00
NSData+Image.h Respond to CR. 2017-09-20 09:19:15 -04:00
NSData+Image.m Respond to CR. 2017-08-30 12:53:02 -04:00
NSData+messagePadding.h Respond to CR. 2017-09-20 09:19:15 -04:00
NSData+messagePadding.m Import SSK (and history) into Signal-iOS 2017-07-21 13:55:01 -04:00
NSData+OWSConstantTimeCompare.h Import SSK (and history) into Signal-iOS 2017-07-21 13:55:01 -04:00
NSData+OWSConstantTimeCompare.m Import SSK (and history) into Signal-iOS 2017-07-21 13:55:01 -04:00
NSDate+OWS.h Format message statuses with date if possible. 2017-09-27 16:38:48 -04:00
NSDate+OWS.mm Sketch out message metadata view. 2017-09-25 17:25:49 -04:00
NSNotificationCenter+OWS.h Post notifications asynchronously. 2017-09-21 17:03:57 -04:00
NSNotificationCenter+OWS.m Post notifications asynchronously. 2017-09-21 17:03:57 -04:00
NSTimer+OWS.h Import SSK (and history) into Signal-iOS 2017-07-21 13:55:01 -04:00
NSTimer+OWS.m Import SSK (and history) into Signal-iOS 2017-07-21 13:55:01 -04:00
NSURLSessionDataTask+StatusCode.h Respond to CR. 2017-09-20 09:19:15 -04:00
NSURLSessionDataTask+StatusCode.m Import SSK (and history) into Signal-iOS 2017-07-21 13:55:01 -04:00
OWSAnalytics.h Pull out TSMessageDecrypter class. 2017-09-21 14:38:30 -04:00
OWSAnalytics.m Apply OWSFail() in more places. 2017-09-11 10:20:48 -04:00
OWSAnalyticsEvents.h Respond to CR. 2017-09-20 11:48:37 -04:00
OWSAnalyticsEvents.m Respond to CR. 2017-09-20 11:48:37 -04:00
OWSDispatch.h Import SSK (and history) into Signal-iOS 2017-07-21 13:55:01 -04:00
OWSDispatch.m Import SSK (and history) into Signal-iOS 2017-07-21 13:55:01 -04:00
OWSError.h Respond to CR. 2017-09-19 09:30:01 -04:00
OWSError.m Apply DataSource to message sender. 2017-09-11 10:20:48 -04:00
OWSQueues.h Respond to CR. 2017-07-26 10:52:15 -04:00
Threading.h Import SSK (and history) into Signal-iOS 2017-07-21 13:55:01 -04:00
Threading.m Import SSK (and history) into Signal-iOS 2017-07-21 13:55:01 -04:00