When running PictureInPicture then receive remote push notification,the notification not show and execute directly

When my app running PictureInPicture in background , if my app receive a remote push notification,the notification not show and will execute directly, has anyone face the same problem?
I discover the reason is that my project use some old notification api which should use [UNUserNotificationCenter currentNotificationCenter] instead
When running PictureInPicture then receive remote push notification,the notification not show and execute directly
 
 
Q