After opening iOS app “continue userActivity:” method isn't called - Firebase dynamic link

后端 未结 4 938
独厮守ぢ
独厮守ぢ 2021-01-16 10:18

I have successfully integrated Firebase dynamic links and when I click on dynamic link then my app is opening.

The issues I\'m facing is after opening app from dynam

4条回答
  •  心在旅途
    2021-01-16 10:46

    You need to check two times.

    1. When app. is running in the background and is opening from Link: Delegate method is:func checkForTransferedTicket(_ userActivity: NSUserActivity) { }

    2. When app. is NOT running in background and is opening from Link:

      func scene(_ scene: UIScene, willConnectTo session: UISceneSession,options connectionOptions: UIScene.ConnectionOptions) { if let userActivity = connectionOptions.userActivities.first {
                       print(userActivity)
                   }
           }
      

提交回复
热议问题