iOS: How to open Deep Links, Notifications and Shortcuts
Stan Ostrovskiy

If the app is not running and user tap on the universal link the applicationDidBecomeActive method is executed before the method application(_ application: UIApplication, continue userActivity: NSUserActivity).

I think you assume thate the order of the execution of this methods will be always reverse.

but great tutorial, i like the way you code