Pick the fix
Tapping a notification while the app is killed opens the home screen instead of the chat. Most likely fix?
Hint 1 of 1
When is the tap delivered?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Set the notification center delegate in didFinishLaunching and queue the route until the root UI is ready
Correct. The tap is received and delivered when the UI can show it.
Why not the others?
- B Set the delegate in the chat screen's viewDidLoad. That screen doesn't exist at cold start.
- C Send a second silent push after launch. It's unreliable and throttled.
- D Read the payload from UserDefaults. Nothing writes it there.