title: Background fetch not working - Not firing notification
body: <p>I'm trying to implement Background Fetch API in my app for that I've configured as below.</p>
  
  <p>I've enabled Background Fetch from Capabilities.</p>
  
  <p>In AppDelegate.swift</p>
  
  <p>Added this in <code>didFinishLaunchingWithOptions</code> method</p>
  
  <pre><code>UIApplication.shared.setMinimumBackgroundFetchInterval(30)
  </code></pre>
  
  <p>Implemented this method too to perform task.</p>
  
  <pre><code>func application(_ application: UIApplication, performFetchWithCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -&gt; Void) {
  
      debugPrint("New notification fired from AppDelegate...!!")
  
      let notif = UNMutableNotificationContent()
      notif.title = "New notification from App delegate"
      notif.subtitle = "Cool App!"
      notif.body = "I liked it!"
  
      UNUserNotificationCenter.current().requestAuthorization(options: [.sound, .badge, .alert], completionHandler: { (isGranted, error) in
  
          DispatchQueue.main.async {
              let notifTrigger = UNTimeIntervalNotificationTrigger(timeInterval: 0.1, repeats: false)
              let request = UNNotificationRequest(identifier: "myNotification", content:  notif, trigger: notifTrigger)
  
              UNUserNotificationCenter.current().add(request) { (error) in
                  if error != nil{
                      print(error!)
                  } else {
                      // do something
                  }
              }
          }
      })
  
  }
  </code></pre>
  
  <p>After configuring all the things local notification not firing. Why so?</p>
  
  <p>Am I missing something?</p>
  
  <p>I've also tried <a href="https://www.raywenderlich.com/143128/background-modes-tutorial-getting-started" rel="nofollow noreferrer">this tutorial</a></p>
  
  <p>Any help will be appreciated! </p>