Updated for iOS 13, because of SceneDelegate.
Sample Xcode project to demonstrate pushing a view controller into current navigation controller when user open the app by tapping push notification. This example works when the app is in background and user tap on the push notification.
Make sure you have set the signing certificate in project settings before building this app into your iOS device :
I have made a macOS app to send push notification easily, feel free to check it out on the Mac App Store .