title: How to configure Pusher Beams SDK with Firebase in App Delegate?
body: <p>I have the Firebase SDK in my project for the backend and I am using the Beams SDK from Pusher to configure push notifications.</p>
  <p>The issue is that, it doesn't seem that my app delegate is configuring the settings I need to send notification with the Beams SDK if I have Firebase. Here is what I mean.</p>
  <p>According to the Beams SDK I need to place this code in the <code>didFinishLaunchingWithOptions</code></p>
  <pre><code>func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -&gt; Bool {
      
      self.pushNotifications.start(instanceId: &quot;MyInstanceID&quot;)
          self.pushNotifications.registerForRemoteNotifications()
          try? self.pushNotifications.addDeviceInterest(interest: &quot;debug-hello&quot;)
     // FirebaseApp.configure() . However it ONLY works properly when this is commented out
      
      
      
      return true
  }
  </code></pre>
  <p>As I showed above, it only configures my notifications properly if I comment out the Firebase configuration. Here is other relevant code in my delegate:</p>
  <pre><code>
  func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -&gt; Void) {
          
          print(&quot;RECEIVED NOTIFICATION&quot;)
          self.pushNotifications.handleNotification(userInfo: userInfo)
     
         
          
          if Auth.auth().canHandleNotification(userInfo){
              completionHandler(.noData)
              return
          }
          
          
      }
  
  
  func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
          print(&quot;Did register for remote notifications&quot;)
          self.pushNotifications.registerDeviceToken(deviceToken)
          Auth.auth().setAPNSToken(deviceToken, type: .prod)
          
  
      }
  </code></pre>
  <p>How do I properly configure both in my project?</p>