I'm trying to get notification data that whenever notification is received on Phone, it should update database that notification with this id is received. To achieve that i'm using didReceiveRemoteNotification call method which is working absolutely fine in foreground and background but once the app is removed(swiped) from recent apps section. I get message ("Terminated due to signal 9") and calls are not received on method didReceiveRemoteNotification How can I get this call to wakeup even when app is killed (swiped from recent apps). Or Is there any alternative way that I can use to get the notification received data with notification id with real time.
func application(_ application: UIApplication,
didReceiveRemoteNotification userInfo: [AnyHashable : Any],
fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
print("Remote call data is working")
}