Skip to content

Commit

Permalink
iOS 8 Support
Browse files Browse the repository at this point in the history
- Supporting iOS 8
- Updating translations
- Rewriting PushManager to extensively use futures
- Pick up calls directly from the lock-screen
  • Loading branch information
FredericJacobs committed Sep 14, 2014
1 parent 8b42036 commit cd0bda7
Show file tree
Hide file tree
Showing 51 changed files with 336 additions and 133 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0510"
LastUpgradeVersion = "0600"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down Expand Up @@ -39,6 +39,15 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A1B989631725EC1300B6E8B5"
BuildableName = "libspandsp.a"
BlueprintName = "spandsp"
ReferencedContainer = "container:spandsp.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0510"
LastUpgradeVersion = "0600"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down Expand Up @@ -39,6 +39,15 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A1FDCBF916DBC57D00868894"
BuildableName = "libspeex.a"
BlueprintName = "speex"
ReferencedContainer = "container:speex.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
Expand Down
4 changes: 2 additions & 2 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ link_with ["Signal", "SignalTests"]

pod 'UICKeyChainStore', :podspec => 'Podspecs/UICKeyChainStore.podspec'
pod 'OpenSSL', '~> 1.0.109'
pod 'MMDrawerController', '~> 0.5.0'
pod 'MMDrawerController', '~> 0.5.7'
pod 'libPhoneNumber-iOS', '~> 0.7'
pod 'PastelogKit', '~> 1.1'
pod 'AFNetworking', '~> 2.3.1'
pod 'AFNetworking', '~> 2.4.1'
pod 'TwistedOakCollapsingFutures','~> 1.0'
32 changes: 16 additions & 16 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
PODS:
- AFNetworking (2.3.1):
- AFNetworking (2.4.1):
- AFNetworking/NSURLConnection
- AFNetworking/NSURLSession
- AFNetworking/Reachability
- AFNetworking/Security
- AFNetworking/Serialization
- AFNetworking/UIKit
- AFNetworking/NSURLConnection (2.3.1):
- AFNetworking/NSURLConnection (2.4.1):
- AFNetworking/Reachability
- AFNetworking/Security
- AFNetworking/Serialization
- AFNetworking/NSURLSession (2.3.1):
- AFNetworking/NSURLSession (2.4.1):
- AFNetworking/Reachability
- AFNetworking/Security
- AFNetworking/Serialization
- AFNetworking/Reachability (2.3.1)
- AFNetworking/Security (2.3.1)
- AFNetworking/Serialization (2.3.1)
- AFNetworking/UIKit (2.3.1):
- AFNetworking/Reachability (2.4.1)
- AFNetworking/Security (2.4.1)
- AFNetworking/Serialization (2.4.1)
- AFNetworking/UIKit (2.4.1):
- AFNetworking/NSURLConnection
- AFNetworking/NSURLSession
- CocoaLumberjack (1.9.2):
Expand All @@ -26,17 +26,17 @@ PODS:
- CocoaLumberjack/Extensions (1.9.2):
- CocoaLumberjack/Core
- libPhoneNumber-iOS (0.7.3)
- MMDrawerController (0.5.6):
- MMDrawerController (0.5.7):
- MMDrawerController/Core
- MMDrawerController/MMDrawerBarButtonItem
- MMDrawerController/MMDrawerVisualStates
- MMDrawerController/Subclass
- MMDrawerController/Core (0.5.6)
- MMDrawerController/MMDrawerBarButtonItem (0.5.6):
- MMDrawerController/Core (0.5.7)
- MMDrawerController/MMDrawerBarButtonItem (0.5.7):
- MMDrawerController/Core
- MMDrawerController/MMDrawerVisualStates (0.5.6):
- MMDrawerController/MMDrawerVisualStates (0.5.7):
- MMDrawerController/Core
- MMDrawerController/Subclass (0.5.6):
- MMDrawerController/Subclass (0.5.7):
- MMDrawerController/Core
- OpenSSL (1.0.109)
- PastelogKit (1.1):
Expand All @@ -47,9 +47,9 @@ PODS:
- UnionFind (1.0.1)

DEPENDENCIES:
- AFNetworking (~> 2.3.1)
- AFNetworking (~> 2.4.1)
- libPhoneNumber-iOS (~> 0.7)
- MMDrawerController (~> 0.5.0)
- MMDrawerController (~> 0.5.7)
- OpenSSL (~> 1.0.109)
- PastelogKit (~> 1.1)
- TwistedOakCollapsingFutures (~> 1.0)
Expand All @@ -60,10 +60,10 @@ EXTERNAL SOURCES:
:podspec: Podspecs/UICKeyChainStore.podspec

SPEC CHECKSUMS:
AFNetworking: 6d7b76aa5d04c8c37daad3eef4b7e3f2a7620da3
AFNetworking: 0aabc6fae66d6e5d039eeb21c315843c7aae51ab
CocoaLumberjack: 205769c032b5fef85b92472046bcc8b7e7c8a817
libPhoneNumber-iOS: 98fc07d70c8fdb5e6a8e3442c37e97353065c20e
MMDrawerController: 4bae84535ca7a5f4cb55a66a001e6035c3571677
MMDrawerController: c3ab7a318ddc7e2bcd133139c3161af08c6e1197
OpenSSL: 4810adf5c99b0e2cd20670a11a987c805e8a521c
PastelogKit: 32836ec27e587a8876326abeaf9a1b5e2bc484ea
TwistedOakCollapsingFutures: 07aab84fd3958dc94d55ef705b12857d9fbe61d1
Expand Down
2 changes: 1 addition & 1 deletion Pods
Submodule Pods updated 63 files
+0 −0 AFNetworking/AFNetworking/AFHTTPRequestOperation.h
+2 −2 AFNetworking/AFNetworking/AFHTTPRequestOperation.m
+3 −3 AFNetworking/AFNetworking/AFHTTPRequestOperationManager.h
+1 −1 AFNetworking/AFNetworking/AFHTTPRequestOperationManager.m
+0 −0 AFNetworking/AFNetworking/AFHTTPSessionManager.h
+66 −84 AFNetworking/AFNetworking/AFHTTPSessionManager.m
+2 −8 AFNetworking/AFNetworking/AFNetworkReachabilityManager.h
+7 −1 AFNetworking/AFNetworking/AFNetworkReachabilityManager.m
+0 −0 AFNetworking/AFNetworking/AFNetworking.h
+0 −0 AFNetworking/AFNetworking/AFSecurityPolicy.h
+0 −0 AFNetworking/AFNetworking/AFSecurityPolicy.m
+0 −0 AFNetworking/AFNetworking/AFURLConnectionOperation.h
+2 −5 AFNetworking/AFNetworking/AFURLConnectionOperation.m
+10 −1 AFNetworking/AFNetworking/AFURLRequestSerialization.h
+76 −22 AFNetworking/AFNetworking/AFURLRequestSerialization.m
+8 −0 AFNetworking/AFNetworking/AFURLResponseSerialization.h
+36 −22 AFNetworking/AFNetworking/AFURLResponseSerialization.m
+1 −1 AFNetworking/AFNetworking/AFURLSessionManager.h
+64 −33 AFNetworking/AFNetworking/AFURLSessionManager.m
+0 −0 AFNetworking/LICENSE
+2 −0 AFNetworking/README.md
+0 −0 AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h
+0 −0 AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.m
+0 −0 AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h
+0 −0 AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.m
+0 −0 AFNetworking/UIKit+AFNetworking/UIAlertView+AFNetworking.h
+0 −0 AFNetworking/UIKit+AFNetworking/UIAlertView+AFNetworking.m
+39 −6 AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h
+139 −62 AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.m
+1 −1 AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h
+3 −1 AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.m
+0 −0 AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h
+0 −0 AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h
+4 −4 AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.m
+0 −0 AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h
+0 −0 AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.m
+0 −0 AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h
+0 −0 AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m
+0 −0 MMDrawerController/LICENSE
+0 −0 MMDrawerController/MMDrawerController/MMDrawerBarButtonItem.h
+0 −0 MMDrawerController/MMDrawerController/MMDrawerBarButtonItem.m
+0 −0 MMDrawerController/MMDrawerController/MMDrawerController+Subclass.h
+0 −0 MMDrawerController/MMDrawerController/MMDrawerController.h
+14 −6 MMDrawerController/MMDrawerController/MMDrawerController.m
+0 −0 MMDrawerController/MMDrawerController/MMDrawerVisualState.h
+0 −0 MMDrawerController/MMDrawerController/MMDrawerVisualState.m
+0 −0 MMDrawerController/MMDrawerController/UIViewController+MMDrawerController.h
+0 −0 MMDrawerController/MMDrawerController/UIViewController+MMDrawerController.m
+6 −1 MMDrawerController/README.md
+16 −16 Manifest.lock
+12 −12 Pods-environment.h
+7,988 −7,988 Pods.xcodeproj/project.pbxproj
+1 −1 Pods.xcodeproj/xcuserdata/fred.xcuserdatad/xcschemes/Pods-AFNetworking.xcscheme
+1 −1 Pods.xcodeproj/xcuserdata/fred.xcuserdatad/xcschemes/Pods-CocoaLumberjack.xcscheme
+1 −1 Pods.xcodeproj/xcuserdata/fred.xcuserdatad/xcschemes/Pods-MMDrawerController.xcscheme
+1 −1 Pods.xcodeproj/xcuserdata/fred.xcuserdatad/xcschemes/Pods-OpenSSL.xcscheme
+1 −1 Pods.xcodeproj/xcuserdata/fred.xcuserdatad/xcschemes/Pods-PastelogKit.xcscheme
+1 −1 Pods.xcodeproj/xcuserdata/fred.xcuserdatad/xcschemes/Pods-TwistedOakCollapsingFutures.xcscheme
+1 −1 Pods.xcodeproj/xcuserdata/fred.xcuserdatad/xcschemes/Pods-UICKeyChainStore.xcscheme
+1 −1 Pods.xcodeproj/xcuserdata/fred.xcuserdatad/xcschemes/Pods-UnionFind.xcscheme
+1 −1 Pods.xcodeproj/xcuserdata/fred.xcuserdatad/xcschemes/Pods-libPhoneNumber-iOS.xcscheme
+1 −1 Pods.xcodeproj/xcuserdata/fred.xcuserdatad/xcschemes/Pods.xcscheme
+52 −1 Pods.xcodeproj/xcuserdata/fred.xcuserdatad/xcschemes/xcschememanagement.plist
22 changes: 16 additions & 6 deletions Signal.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@
B6416FD4199A0478003C5699 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = B6416FAB199A0478003C5699 /* Localizable.strings */; };
B67ADDC41989FF8700E1A773 /* CallServerRequestsManager.m in Sources */ = {isa = PBXBuildFile; fileRef = B67ADDC31989FF8700E1A773 /* CallServerRequestsManager.m */; };
B67EBF5D19194AC60084CCFD /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = B67EBF5C19194AC60084CCFD /* Settings.bundle */; };
B684A46D19C3446200B11029 /* PushManagerTest.m in Sources */ = {isa = PBXBuildFile; fileRef = B684A46C19C3446200B11029 /* PushManagerTest.m */; };
B6850E5A1995A4710068E715 /* whisperFake.cer in Resources */ = {isa = PBXBuildFile; fileRef = B6850E591995A4710068E715 /* whisperFake.cer */; };
B69CD25119773E79005CE69A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B69CD25019773E79005CE69A /* XCTest.framework */; };
B6B1013C196D213F007E3930 /* SGNKeychainUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = B6B1013B196D213F007E3930 /* SGNKeychainUtil.m */; };
Expand Down Expand Up @@ -1098,6 +1099,7 @@
B67ADDC21989FF8700E1A773 /* CallServerRequestsManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CallServerRequestsManager.h; sourceTree = "<group>"; };
B67ADDC31989FF8700E1A773 /* CallServerRequestsManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CallServerRequestsManager.m; sourceTree = "<group>"; };
B67EBF5C19194AC60084CCFD /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = Settings.bundle; path = SettingsBundle/Settings.bundle; sourceTree = SOURCE_ROOT; };
B684A46C19C3446200B11029 /* PushManagerTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PushManagerTest.m; path = Signal/test/push/PushManagerTest.m; sourceTree = SOURCE_ROOT; };
B6850E591995A4710068E715 /* whisperFake.cer */ = {isa = PBXFileReference; lastKnownFileType = file; path = whisperFake.cer; sourceTree = "<group>"; };
B69CD25019773E79005CE69A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
B6B1013A196D213F007E3930 /* SGNKeychainUtil.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SGNKeychainUtil.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2196,6 +2198,7 @@
A157073917F0CD6D007C2BD6 /* Supporting Files */,
A157073B17F0CD6D007C2BD6 /* TestUtil.h */,
A157073C17F0CD6D007C2BD6 /* TestUtil.m */,
B684A46C19C3446200B11029 /* PushManagerTest.m */,
A157073D17F0CD6D007C2BD6 /* util */,
);
path = test;
Expand Down Expand Up @@ -3007,12 +3010,18 @@
D221A088169C9E5E00537ABF = {
DevelopmentTeam = U68MSDN6DR;
SystemCapabilities = {
com.apple.DataProtection = {
enabled = 1;
};
com.apple.InAppPurchase = {
enabled = 0;
};
com.apple.InterAppAudio = {
enabled = 0;
};
com.apple.VPNLite = {
enabled = 0;
};
};
};
D221A0A9169C9E5F00537ABF = {
Expand Down Expand Up @@ -3739,6 +3748,7 @@
76EB066118170B34006006FC /* RegisterViewController.m in Sources */,
76EB068D18170B34006006FC /* InboxFeedTableViewCell.m in Sources */,
BFB074C119A4BCA400F2947C /* FutureUtilTest.m in Sources */,
B684A46D19C3446200B11029 /* PushManagerTest.m in Sources */,
76EB05A918170B33006006FC /* RtpSocket.m in Sources */,
765052B0182AC9B5008313E1 /* DialerButtonView.m in Sources */,
76EB062B18170B33006006FC /* BadState.m in Sources */,
Expand Down Expand Up @@ -4194,8 +4204,8 @@
isa = XCBuildConfiguration;
baseConfigurationReference = C71793B33D9C45079F74487E /* Pods.xcconfig */;
buildSettings = {
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_IDENTITY = "iPhone Distribution";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CURRENT_PROJECT_VERSION = 1;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -4234,7 +4244,7 @@
LLVM_LTO = NO;
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = Signal;
PROVISIONING_PROFILE = "036480DA-A21D-4CC6-BF48-98E8AE1EE981";
PROVISIONING_PROFILE = "4aa31d4f-187c-470a-add6-8e949fc2cfd1";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = 1;
TEST_AFTER_BUILD = YES;
Expand Down Expand Up @@ -4483,8 +4493,8 @@
isa = XCBuildConfiguration;
baseConfigurationReference = C71793B33D9C45079F74487E /* Pods.xcconfig */;
buildSettings = {
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_IDENTITY = "iPhone Distribution";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CURRENT_PROJECT_VERSION = 1;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -4521,7 +4531,7 @@
LLVM_LTO = NO;
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = Signal;
PROVISIONING_PROFILE = "7214A823-1F7A-4460-82D8-D89CA511CEA6";
PROVISIONING_PROFILE = "4434E074-1111-40F0-A7B6-CEA8437ACFE1";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = 1;
TEST_AFTER_BUILD = YES;
Expand Down
2 changes: 1 addition & 1 deletion Signal.xcodeproj/xcshareddata/xcschemes/Signal.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0510"
LastUpgradeVersion = "0600"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
7 changes: 4 additions & 3 deletions Signal/Signal-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.4</string>
<string>1.0.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0.4</string>
<string>1.0.5</string>
<key>LSApplicationCategoryType</key>
<string></string>
<string>public.app-category.social-networking</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIAppFonts</key>
Expand All @@ -48,6 +48,7 @@
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
<string>fetch</string>
<string>remote-notification</string>
<string>voip</string>
</array>
Expand Down
35 changes: 30 additions & 5 deletions Signal/src/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ @interface AppDelegate ()
@property (nonatomic, strong) MMDrawerController *drawerController;
@property (nonatomic, strong) NotificationTracker *notificationTracker;

@property (nonatomic) TOCFutureSource *callPickUpFuture;

@end

@implementation AppDelegate
Expand Down Expand Up @@ -154,20 +156,34 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

InCallViewController *callViewController = [InCallViewController inCallViewControllerWithCallState:latestCall
andOptionallyKnownContact:latestCall.potentiallySpecifiedContact];

if (latestCall.initiatedLocally == false){
[self.callPickUpFuture.future thenDo:^(NSNumber *accept) {
if ([accept isEqualToNumber:@YES]) {
[callViewController answerButtonTapped];
} else if ([accept isEqualToNumber:@NO]){
[callViewController rejectButtonTapped];
}
}];
}
[_drawerController.centerViewController presentViewController:callViewController animated:YES completion:nil];

} onThread:NSThread.mainThread untilCancelled:nil];


return YES;
}

- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken {
[PushManager.sharedManager registerForPushWithToken:deviceToken];
[[PushManager sharedManager].pushNotificationFutureSource trySetResult:deviceToken];
}

- (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error {
[PushManager.sharedManager verifyPushActivated];
DDLogError(@"Failed to register for push notifications: %@", error);
[[PushManager sharedManager].pushNotificationFutureSource trySetFailure:error];
}

- (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings{
[[PushManager sharedManager].userNotificationFutureSource trySetResult:notificationSettings];
}

-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
Expand All @@ -184,7 +200,7 @@ -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NS
DDLogError(@"Decryption of session descriptor failed");
return;
}

self.callPickUpFuture = [TOCFutureSource new];
[Environment.phoneManager incomingCallWithSession:call];
}

Expand All @@ -207,11 +223,20 @@ -(void) applicationDidBecomeActive:(UIApplication *)application {
[self removeScreenProtection];

if (Environment.isRegistered) {
[PushManager.sharedManager verifyPushActivated];
[PushManager.sharedManager verifyPushPermissions];
[AppAudioManager.sharedInstance requestRequiredPermissionsIfNeeded];
}
}

- (void)application:(UIApplication *)application handleActionWithIdentifier:(NSString *)identifier forRemoteNotification:(NSDictionary *)userInfo completionHandler:(void (^)())completionHandler{
if ([identifier isEqualToString:Signal_Accept_Identifier]) {
[self.callPickUpFuture trySetResult:@YES];
} else if ([identifier isEqualToString:Signal_Decline_Identifier]){
[self.callPickUpFuture trySetResult:@NO];
}
completionHandler();
}

- (void)applicationWillResignActive:(UIApplication *)application{
[self protectScreen];
}
Expand Down
6 changes: 5 additions & 1 deletion Signal/src/environment/VersionMigrations.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ + (void)migrationFrom1Dot0Dot2toLarger{

// Some users push IDs were not correctly registered, by precaution, we are going to re-register all of them

[PushManager.sharedManager askForPushRegistration];
[PushManager.sharedManager registrationWithSuccess:^{

} failure:^{
DDLogError(@"Error re-registering on migration from 1.0.2");
}];

[[NSFileManager defaultManager] removeItemAtPath:path error:&error];

Expand Down
Loading

1 comment on commit cd0bda7

@WhisperBTC
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! BitHub has sent payment of $18.18USD for this commit.

Please sign in to comment.