Facebook v13.1.0 Release Notes

  • 🚀 2022-03-14 | Full Changelog

    Notable Changes

    ➕ Added an API to support deep linking using Universal Links

    In order to ensure that your app properly supports deep linking from app ads with Universal Links, you will need to implement application(_:continue:restorationHandler:) in your App Delegate, and call ApplicationDelegate.shared.application(_:continue:) from your implementation. Your change might look like the following snippet:

    func application(
      _ application: UIApplication,
      continue userActivity: NSUserActivity,
      restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void
    ) -> Bool {
      ApplicationDelegate.shared.application(application, continue: userActivity)
    
      // Rest of implementation...
    
      return true
    }
    

    If your app is opted into Scenes, then you will also need to add the following code in your Scene Delegate implementation, in scene(_:willConnectTo:options:):

    func scene(
      _ scene: UIScene,
      willConnectTo session: UISceneSession,
      options connectionOptions: UIScene.ConnectionOptions
    ) {
      if let userActivity = connectionOptions.userActivities.first {
        ApplicationDelegate.shared.application(UIApplication.shared, continue: userActivity)
      }
    
      // Rest of implementation...
    }