Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to play sounds with notification #156

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions ExampleProject/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

/* Begin PBXBuildFile section */
0C9D527520AF4EAA93E80BC5 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A64AE23935D5499BAF0AC8C1 /* libPods.a */; };
69EED4131922FA4100C1510F /* error.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 69EED4121922FA4100C1510F /* error.mp3 */; };
69EED4151922FAA400C1510F /* warning.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 69EED4141922FAA400C1510F /* warning.mp3 */; };
69EED4171922FAE300C1510F /* message.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 69EED4161922FAE300C1510F /* message.mp3 */; };
69EED4191922FB5100C1510F /* success.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 69EED4181922FB5100C1510F /* success.mp3 */; };
CA0B97051719CD6800E06F84 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CA0B97041719CD6800E06F84 /* UIKit.framework */; };
CA0B97071719CD6800E06F84 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CA0B97061719CD6800E06F84 /* Foundation.framework */; };
CA0B97091719CD6800E06F84 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CA0B97081719CD6800E06F84 /* CoreGraphics.framework */; };
Expand All @@ -23,6 +27,10 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
69EED4121922FA4100C1510F /* error.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = error.mp3; sourceTree = "<group>"; };
69EED4141922FAA400C1510F /* warning.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = warning.mp3; sourceTree = "<group>"; };
69EED4161922FAE300C1510F /* message.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = message.mp3; sourceTree = "<group>"; };
69EED4181922FB5100C1510F /* success.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = success.mp3; sourceTree = "<group>"; };
8B33F75B47A447C8B36A0061 /* Pods.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = SOURCE_ROOT; };
A64AE23935D5499BAF0AC8C1 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
CA0B97011719CD6800E06F84 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -105,6 +113,10 @@
CA0B970B1719CD6800E06F84 /* Supporting Files */ = {
isa = PBXGroup;
children = (
69EED4141922FAA400C1510F /* warning.mp3 */,
69EED4161922FAE300C1510F /* message.mp3 */,
69EED4181922FB5100C1510F /* success.mp3 */,
69EED4121922FA4100C1510F /* error.mp3 */,
CA0B970C1719CD6800E06F84 /* Example-Info.plist */,
CA0B970D1719CD6800E06F84 /* InfoPlist.strings */,
CA0B97101719CD6800E06F84 /* main.m */,
Expand Down Expand Up @@ -169,10 +181,14 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
69EED4131922FA4100C1510F /* error.mp3 in Resources */,
CA0B970F1719CD6800E06F84 /* InfoPlist.strings in Resources */,
69EED4191922FB5100C1510F /* success.mp3 in Resources */,
CA0B97171719CD6800E06F84 /* Default.png in Resources */,
CA0B97191719CD6800E06F84 /* [email protected] in Resources */,
69EED4171922FAE300C1510F /* message.mp3 in Resources */,
CA0B971B1719CD6800E06F84 /* [email protected] in Resources */,
69EED4151922FAA400C1510F /* warning.mp3 in Resources */,
CA0B971E1719CD6800E06F84 /* MainStoryboard.storyboard in Resources */,
CAA3C9E817C3CD180085E06E /* AlternativeDesign.json in Resources */,
);
Expand Down
3 changes: 3 additions & 0 deletions ExampleProject/Example/TSDemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ - (void)viewDidLoad
[super viewDidLoad];

[TSMessage setDefaultViewController:self];
[TSMessage setDefaultNotificationSoundWithName:@"message" andExtension:@"mp3"];
[TSMessage setSoundWithName:@"error" extension:@"mp3" forNotificationType:TSMessageNotificationTypeError];
[TSMessage setSoundWithName:@"warning" extension:@"mp3" forNotificationType:TSMessageNotificationTypeWarning];
self.wantsFullScreenLayout = YES;
[self.navigationController.navigationBar setTranslucent:YES];
}
Expand Down
Binary file added ExampleProject/Example/error.mp3
Binary file not shown.
Binary file added ExampleProject/Example/message.mp3
Binary file not shown.
Binary file added ExampleProject/Example/success.mp3
Binary file not shown.
Binary file added ExampleProject/Example/warning.mp3
Binary file not shown.
8 changes: 4 additions & 4 deletions ExampleProject/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- HexColors (2.2.1)
- TSMessages (0.9.4):
- TSMessages (0.9.9):
- HexColors

DEPENDENCIES:
Expand All @@ -11,7 +11,7 @@ EXTERNAL SOURCES:
:path: ..

SPEC CHECKSUMS:
HexColors: 3a68db077cd6572a8f7d4aa1add284dd2436a934
TSMessages: de3fecb312d44078128add86d4347307669d0af2
HexColors: 99211502e17904af7891fc8f687d0e4958a6d66e
TSMessages: 078f4d4a92335417d862c3460e8676588d0a974a

COCOAPODS: 0.29.0
COCOAPODS: 0.32.1
3 changes: 2 additions & 1 deletion ExampleProject/Pods/Local Podspecs/TSMessages.podspec

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ExampleProject/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ExampleProject/Pods/Pods-TSMessages-Private.xcconfig

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ExampleProject/Pods/Pods-TSMessages.xcconfig

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ExampleProject/Pods/Pods-environment.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ExampleProject/Pods/Pods.xcconfig

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading