Receiving duplicate notification due to delay in notifications

As The Apple Push Notification service (APNs) will no longer support the legacy binary protocol as of November 2020, we have implemented Token based connections to APNS with HTTP/2 support. 

Now the problem we have started facing is, sometimes the push notifications are getting delayed and due to which we are receiving duplicate notifications.

Any help on this would be really appreciated!
Thanks in advance!
Receiving duplicate notification due to delay in notifications
 
 
Q