- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { UIApplicationState state = [application applicationState]; if (state == UIApplicationStateActive) { // Recieved a notification while the app was already open. May want to record seperately or ignore } else { // Recieved notification while in background. Tag this as if it came from a cold start } }