This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| override func viewWillAppear(_ animated: Bool) { | |
| let url = URL(string: "https://www.hrupin.com/wp-content/uploads/mp3/testsong_20_sec.mp3")! | |
| self.playSound(url: url) | |
| addPeriodicTimeObserver() | |
| } | |
| var player: AVAudioPlayer? | |
| func playSound(url: URL) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension NotificationsMyStreet { | |
| func prepareVars(request:Request) throws -> DataFromClientSendNotifications { | |
| struct ObjectReceived: NodeInitializable { | |
| let title: String | |
| let body: String | |
| let unreadMessagesCount: Int |
NewerOlder