didReceiveRemoteNotification not called in iOS 13.3 when app is in background

后端 未结 2 1066
情深已故
情深已故 2021-02-13 01:39

I am banging my head. I am implementing push notification. Everything is working fine (push is received, badge is updated) but under iOS 13.3 the method application(_:didReceive

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-13 01:55

    Have you set

    "content-available": 1
    

    in you backend APS payload?

    Also need to make sure you have enabled background mode in your iOS App's info.plist file

    UIBackgroundModes
    
        processing
        remote-notification
    
    

提交回复
热议问题