     
     public func play() {
         do {
-            try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback)
+            //try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback)
             try AVAudioSession.sharedInstance().setActive(true)
             
             // Play endless loops

    public func presentSnoozePopup(forViewController viewController: UIViewController) {
        if AlarmRule.isSnoozed() {
            AlarmRule.disableSnooze()
            snoozeText = "Snooze"
        } else {
            
            self.muteVolume()
            
            let alertController = UIAlertController(title: "Snooze", message: "How long should the alarm be ignored?", preferredStyle: UIAlertControllerStyle.Alert)
            
            alertController.addAction(UIAlertAction(title: "30 Minutes",
                style: UIAlertActionStyle.Default,
                handler: {(alert: UIAlertAction!) in
                    
                    self.snoozeMinutes(30)
            }))
            alertController.addAction(UIAlertAction(title: "1 Hour",
                style: UIAlertActionStyle.Default,
                handler: {(alert: UIAlertAction!) in
                    
                    self.snoozeMinutes(60)
            }))
            alertController.addAction(UIAlertAction(title: "1 1/2 Hours",
                style: UIAlertActionStyle.Default,
                handler: {(alert: UIAlertAction!) in
                    
                    self.snoozeMinutes(90)
            }))
            alertController.addAction(UIAlertAction(title: "2 Hours",
                style: UIAlertActionStyle.Default,
                handler: {(alert: UIAlertAction!) in
                    
                    self.snoozeMinutes(120)
            }))
            alertController.addAction(UIAlertAction(title: Constants.LocalizedString.generalCancelLabel.localized
                ,

        
    }
    
    public func snooze(forMiutes minutes : Int) {
        
        AlarmRule.snooze(minutes)
        
