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

后端 未结 4 932
独厮守ぢ
独厮守ぢ 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:58

    The blunder of Google.

    I don't know whether they keep their doc. up to date or not.

    I have just copy-pasted the code from the Google's official Firebase dynamic link document.

    Why was the continue userActivity: method is not called?

    The reason is (See the difference in following method)

    Copy pasted from google doc. - Wrong one

    func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {

    }

    I wrote this (without copy paste from google doc.) - Correct one

    func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([Any]?) -> Void) -> Bool {

    }

    I've made bold the difference.

    This is what I was trying for many hours. It is really very frustrating for me to blindly trust on google doc.:-|

    Hope this may help other.

提交回复
热议问题