didReceiveRemoteNotification:fetchCompletionHandler is not being called when the app is in background for sometime

I have implemented the method didReceiveRemoteNotification:fetchCompletionHandler and the method is called if a notification is received when the app is in the foreground. It works for the first few (5-10) minutes of the app being in the background. After that, the phone receives the notification but the method didReceiveRemoteNotification:fetchCompletionHandler is not called.

I have "content-available" = 1 specified in the payload.


Xcode version: 11.4

OS Version: 13.5.1

didReceiveRemoteNotification:fetchCompletionHandler is not being called when the app is in background for sometime
 
 
Q