[O] Put notification permission request in the correct location
This commit is contained in:
@@ -8,15 +8,6 @@ class AlarmViewController: UIViewController
|
||||
override func viewDidLoad()
|
||||
{
|
||||
super.viewDidLoad()
|
||||
|
||||
//Get notification permissions from user
|
||||
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { success, error in
|
||||
if success {
|
||||
print("All set!")
|
||||
} else if let error = error {
|
||||
print(error.localizedDescription)
|
||||
}
|
||||
}
|
||||
|
||||
// Assign table delegate and data source
|
||||
AlarmViewController.staticTable = table
|
||||
|
||||
Reference in New Issue
Block a user