简体   繁体   中英

Notification content extension setup

I've set up a Notification Content Extension for my app, but it's not called on a remote push. I've read the apple dev guide below to the letter, and I've set up everything as it says.

https://developer.apple.com/documentation/usernotificationsui/customizing_the_appearance_of_notifications?language=objc

I've looked over the common issues (setting proper deployment target and setting category identifier from backend and in the .plist). I've also tried setting App Transport Security Settings to allow arbitrary loads.

info.plist

What actually happens is that the Notification Service Extension gets called instead.

Do I need to do some routing so that the Service extension isn't called, or do I need to redirect from Service extension to Content extension? Is it even possible to use both simultaneously?

问题是我有一个具有多个目标的应用程序,而Content Extension仅作为目标之一的嵌入式二进制文件添加。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM