iOS push notification: how to detect if the user tapped on notification when the app is in background?
OK I finally figured out. In the target settings ➝ Capabilities tab ➝ Background Modes, if you check “Remote Notifications”, application:didReceiveRemoteNotification: will get triggered as soon as notification arrives (as long as the app is in the background), and in that case there is no way to tell whether the user will tap on the … Read more