Skip to content

Instantly share code, notes, and snippets.

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) {
extension NotificationsMyStreet {
func prepareVars(request:Request) throws -> DataFromClientSendNotifications {
struct ObjectReceived: NodeInitializable {
let title: String
let body: String
let unreadMessagesCount: Int