0

I just added extensions for rich push, in that I implemented a delegate method for customisation. func didReceive(_ response: UNNotificationResponse, completionHandler completion: @escaping (UNNotificationContentExtensionResponseOption) -> Void) { }. But this method didn't get called. Also my extensions deployment target is 10. I don't know what I am doing wrong. I am getting image, gif,audio but video is getting displayed after expansion.

  • In local notification, video is working fine. But same video not working in remote notifications. – Naveen Reddy Jul 06 '18 at 06:04
  • You can't add logs in Extension, they won't get printed in console. For debugging Use pid. Debug-> Attach to process by pid. Make sure you are adding "content-available":1, in your payload. Refer this if needed https://stackoverflow.com/a/50903844/5084797 – manishsharma93 Jul 09 '18 at 10:42
  • @ManishKumar Thanks for response...Its working fine but while playing audio or video, the sound is very low even after increasing it to max. But same files if I use in local notifications, the sound is good. – Naveen Reddy Jul 09 '18 at 11:32
  • Try with some other URL's, I have never faced such issues. – manishsharma93 Jul 09 '18 at 11:39
  • @ManishKumar let me check... – Naveen Reddy Jul 09 '18 at 11:40

0 Answers0