我可以将可变内容与本地推送通知一起使用而不是远程通知吗?
例如在userInfo中发送,使用Notification Service Extension。
最佳答案
没有。
如果您正在使用可变内容和通知服务扩展,则根据 Apple doc它清楚地说:-
An object that modifies the content of a remote notification before it is delivered to the user.
因此您不能使用服务扩展来修改本地通知的内容,然后再将其发送给用户。
但是,如果您尝试呈现自定义界面,您始终可以使用 content extension用于本地通知。
希望它澄清。
关于ios - 我可以将可变内容与本地推送通知一起使用而不是远程通知吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46555901/