Reputation: 37590
I have a notification content extension that displays a few different content/formats depending upon the payload content of the push, and so correspondingly have a few different categories that get set. Most of the notifications are expandable and when they are additional content is displayed.
However one of them I do not want it to be expandable, however currently is is and what happens is the content just gets stretched out. How can I prevent one content of notification from not expanding while retaining the ability for others to expand?
Upvotes: 0
Views: 469
Reputation: 535890
Whether a content extension is applied to a particular notification depends on its category. So you would just need to give the notification containing the "one content" yet another category, one that is matched by no content extension.
Even then, the notification banner still has what I call a "secondary interface" if you have given it an attachment. So if you don't want it to be expandable at all, don't give it an attachment.
Upvotes: 1