Clearing notifications from notification center
Application acknowledges notifications and then clears them from notification center. //FREEBIE
This commit is contained in:
parent
84eb87ac60
commit
c52c6c6248
|
@ -415,7 +415,6 @@
|
|||
B6416FD0199A0478003C5699 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = B6416F9F199A0478003C5699 /* Localizable.strings */; };
|
||||
B6416FD1199A0478003C5699 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = B6416FA2199A0478003C5699 /* Localizable.strings */; };
|
||||
B6416FD2199A0478003C5699 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = B6416FA5199A0478003C5699 /* Localizable.strings */; };
|
||||
B6416FD3199A0478003C5699 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = B6416FA8199A0478003C5699 /* Localizable.strings */; };
|
||||
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 */; };
|
||||
|
@ -1148,7 +1147,6 @@
|
|||
B6416FA0199A0478003C5699 /* tr_TR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = tr_TR; path = Localizable.strings; sourceTree = "<group>"; };
|
||||
B6416FA3199A0478003C5699 /* uk */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = uk; path = Localizable.strings; sourceTree = "<group>"; };
|
||||
B6416FA6199A0478003C5699 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = zh_CN; path = Localizable.strings; sourceTree = "<group>"; };
|
||||
B6416FA9199A0478003C5699 /* zh_TW.Big5 */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = zh_TW.Big5; path = Localizable.strings; sourceTree = "<group>"; };
|
||||
B6416FAC199A0478003C5699 /* zh_TW */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = zh_TW; path = Localizable.strings; sourceTree = "<group>"; };
|
||||
B657DDC91911A40500F45B0C /* Signal.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = Signal.entitlements; sourceTree = "<group>"; };
|
||||
B661C211198EE2EA00548CA1 /* iOSVersions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = iOSVersions.h; path = src/environment/iOSVersions.h; sourceTree = "<group>"; };
|
||||
|
@ -2810,15 +2808,6 @@
|
|||
path = translations/zh_CN.lproj;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
B6416FA7199A0478003C5699 /* zh_TW.Big5.lproj */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
B6416FA8199A0478003C5699 /* Localizable.strings */,
|
||||
);
|
||||
name = zh_TW.Big5.lproj;
|
||||
path = translations/zh_TW.Big5.lproj;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
B6416FAA199A0478003C5699 /* zh_TW.lproj */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -2869,7 +2858,6 @@
|
|||
B6416F9E199A0478003C5699 /* tr_TR.lproj */,
|
||||
B6416FA1199A0478003C5699 /* uk.lproj */,
|
||||
B6416FA4199A0478003C5699 /* zh_CN.lproj */,
|
||||
B6416FA7199A0478003C5699 /* zh_TW.Big5.lproj */,
|
||||
B6416FAA199A0478003C5699 /* zh_TW.lproj */,
|
||||
);
|
||||
name = Translations;
|
||||
|
@ -3350,7 +3338,6 @@
|
|||
E14874EA18A06930002CC4F3 /* tab_icon_inbox@2x.png in Resources */,
|
||||
E14874EB18A06930002CC4F3 /* tab_icon_keypad.png in Resources */,
|
||||
E14874EC18A06930002CC4F3 /* tab_icon_keypad@2x.png in Resources */,
|
||||
B6416FD3199A0478003C5699 /* Localizable.strings in Resources */,
|
||||
E14874ED18A06930002CC4F3 /* tab_icon_menu.png in Resources */,
|
||||
B6416FCD199A0478003C5699 /* Localizable.strings in Resources */,
|
||||
E14874EE18A06930002CC4F3 /* tab_icon_menu@2x.png in Resources */,
|
||||
|
@ -4242,14 +4229,6 @@
|
|||
name = Localizable.strings;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
B6416FA8199A0478003C5699 /* Localizable.strings */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
B6416FA9199A0478003C5699 /* zh_TW.Big5 */,
|
||||
);
|
||||
name = Localizable.strings;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
B6416FAB199A0478003C5699 /* Localizable.strings */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
|
@ -4375,7 +4354,7 @@
|
|||
LLVM_LTO = NO;
|
||||
OTHER_LDFLAGS = "$(inherited)";
|
||||
PRODUCT_NAME = Signal;
|
||||
PROVISIONING_PROFILE = "A4026C2D-D5F0-40C5-B1B4-5EA8E8A1876B";
|
||||
PROVISIONING_PROFILE = "036480DA-A21D-4CC6-BF48-98E8AE1EE981";
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = 1;
|
||||
TEST_AFTER_BUILD = YES;
|
||||
|
@ -4495,7 +4474,7 @@
|
|||
ONLY_ACTIVE_ARCH = YES;
|
||||
OTHER_CFLAGS = "-fobjc-arc-exceptions";
|
||||
PROVISIONING_PROFILE = "";
|
||||
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "A4026C2D-D5F0-40C5-B1B4-5EA8E8A1876B";
|
||||
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
|
||||
SDKROOT = iphoneos;
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
|
@ -4662,7 +4641,7 @@
|
|||
LLVM_LTO = NO;
|
||||
OTHER_LDFLAGS = "$(inherited)";
|
||||
PRODUCT_NAME = Signal;
|
||||
PROVISIONING_PROFILE = "A4026C2D-D5F0-40C5-B1B4-5EA8E8A1876B";
|
||||
PROVISIONING_PROFILE = "7214A823-1F7A-4460-82D8-D89CA511CEA6";
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = 1;
|
||||
TEST_AFTER_BUILD = YES;
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:Signal.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
|
||||
<false/>
|
||||
<key>IDESourceControlProjectIdentifier</key>
|
||||
<string>3A3A9222-5BC1-48E7-8601-0FB31BE919FB</string>
|
||||
<key>IDESourceControlProjectName</key>
|
||||
<string>Signal</string>
|
||||
<key>IDESourceControlProjectOriginsDictionary</key>
|
||||
<dict>
|
||||
<key>5D79A077E31B3FE97A3C6613CBFFDD71C314D14C</key>
|
||||
<string>github.com:WhisperSystems/Signal-iOS.git</string>
|
||||
<key>D74FB800F048CB516BB4BC70047F7CC676D291B9</key>
|
||||
<string>https://github.com/FredericJacobs/Precompiled-Signal-Dependencies.git</string>
|
||||
</dict>
|
||||
<key>IDESourceControlProjectPath</key>
|
||||
<string>Signal.xcodeproj</string>
|
||||
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
|
||||
<dict>
|
||||
<key>5D79A077E31B3FE97A3C6613CBFFDD71C314D14C</key>
|
||||
<string>../..</string>
|
||||
<key>D74FB800F048CB516BB4BC70047F7CC676D291B9</key>
|
||||
<string>../..Pods/</string>
|
||||
</dict>
|
||||
<key>IDESourceControlProjectURL</key>
|
||||
<string>github.com:WhisperSystems/Signal-iOS.git</string>
|
||||
<key>IDESourceControlProjectVersion</key>
|
||||
<integer>111</integer>
|
||||
<key>IDESourceControlProjectWCCIdentifier</key>
|
||||
<string>5D79A077E31B3FE97A3C6613CBFFDD71C314D14C</string>
|
||||
<key>IDESourceControlProjectWCConfigurations</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
|
||||
<string>public.vcs.git</string>
|
||||
<key>IDESourceControlWCCIdentifierKey</key>
|
||||
<string>D74FB800F048CB516BB4BC70047F7CC676D291B9</string>
|
||||
<key>IDESourceControlWCCName</key>
|
||||
<string>Pods</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
|
||||
<string>public.vcs.git</string>
|
||||
<key>IDESourceControlWCCIdentifierKey</key>
|
||||
<string>5D79A077E31B3FE97A3C6613CBFFDD71C314D14C</string>
|
||||
<key>IDESourceControlWCCName</key>
|
||||
<string>Signal-iOS</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
|
@ -54,7 +54,7 @@
|
|||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
buildConfiguration = "Ad-Hoc Distribution"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
|
|
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
|
||||
<false/>
|
||||
<key>IDESourceControlProjectIdentifier</key>
|
||||
<string>90A05A58-76B3-4EF9-A59F-88109694A394</string>
|
||||
<key>IDESourceControlProjectName</key>
|
||||
<string>Signal</string>
|
||||
<key>IDESourceControlProjectOriginsDictionary</key>
|
||||
<dict>
|
||||
<key>5D79A077E31B3FE97A3C6613CBFFDD71C314D14C</key>
|
||||
<string>github.com:WhisperSystems/Signal-iOS.git</string>
|
||||
<key>D74FB800F048CB516BB4BC70047F7CC676D291B9</key>
|
||||
<string>https://github.com/FredericJacobs/Precompiled-Signal-Dependencies.git</string>
|
||||
</dict>
|
||||
<key>IDESourceControlProjectPath</key>
|
||||
<string>Signal.xcworkspace</string>
|
||||
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
|
||||
<dict>
|
||||
<key>5D79A077E31B3FE97A3C6613CBFFDD71C314D14C</key>
|
||||
<string>..</string>
|
||||
<key>D74FB800F048CB516BB4BC70047F7CC676D291B9</key>
|
||||
<string>..Pods/</string>
|
||||
</dict>
|
||||
<key>IDESourceControlProjectURL</key>
|
||||
<string>github.com:WhisperSystems/Signal-iOS.git</string>
|
||||
<key>IDESourceControlProjectVersion</key>
|
||||
<integer>111</integer>
|
||||
<key>IDESourceControlProjectWCCIdentifier</key>
|
||||
<string>5D79A077E31B3FE97A3C6613CBFFDD71C314D14C</string>
|
||||
<key>IDESourceControlProjectWCConfigurations</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
|
||||
<string>public.vcs.git</string>
|
||||
<key>IDESourceControlWCCIdentifierKey</key>
|
||||
<string>D74FB800F048CB516BB4BC70047F7CC676D291B9</string>
|
||||
<key>IDESourceControlWCCName</key>
|
||||
<string>Pods</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
|
||||
<string>public.vcs.git</string>
|
||||
<key>IDESourceControlWCCIdentifierKey</key>
|
||||
<string>5D79A077E31B3FE97A3C6613CBFFDD71C314D14C</string>
|
||||
<key>IDESourceControlWCCName</key>
|
||||
<string>Signal-iOS</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
|
@ -187,7 +187,11 @@
|
|||
|
||||
-(void) applicationDidBecomeActive:(UIApplication *)application {
|
||||
[[AppAudioManager sharedInstance] awake];
|
||||
application.applicationIconBadgeNumber = 0;
|
||||
|
||||
// Hacky way to clear notification center after processed push
|
||||
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:1];
|
||||
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
|
||||
|
||||
[self removeScreenProtection];
|
||||
|
||||
if ([Environment isRegistered]) {
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue