Are there some requirements to use Notification Content Extensions other than including the target to my iOS app?
I have done it, configured it to match a certain category of notifications, but my custom interface doesn’t show up.
is there anything I need to configure on my main app? Is that anything that should be changed there, such as disabking its botifications handling?
is there any requirement concerning the payload? I tried to disable time sensitive and content-available notifications, but it didn’t help.
There could be many reasons for the extension to fail:
- project misconfiguration so the extension is not bundled correctly
- extension misconfiguration so the extension is not attempted to run for the notification (unrecognized category, for example)
- extension not being launched due to some error
- extension being launched but crashing on launch (code error, the extension using more memory than allowed (24MB as of this writing), etc.)
The best way to start diagnosing the issue would be to examine the console logs and see if you can see any specific errors, crashes, or messages pertaining to why the extension may be failing, and start from there.
If you have not gone through the article Customizing the Appearance of Notifications, that would be a good reference too.