[英]Can I use mutable-content with local push notification instead of remote notification?
Can I use mutable-content with local push notification instead of remote notification?我可以在本地推送通知而不是远程通知中使用可变内容吗?
For example, send it in userInfo and use Notification Service Extension.例如,在 userInfo 中发送它并使用通知服务扩展。
NO.不。
If you are using the mutable-content and notifications service extension then as per Apple doc it clearly says:-如果您使用的是可变内容和通知服务扩展,那么根据Apple 文档,它清楚地说明:-
An object that modifies the content of a remote notification before it is delivered to the user.
在将远程通知传送给用户之前修改远程通知内容的对象。
So you can't use service extension for the purpose of modifying content for local notification before it is delivered to the user.因此,您不能使用服务扩展来修改本地通知的内容,然后再将其交付给用户。
However, if you are trying to present custom interface you can always use content extension for local notification.但是,如果您尝试呈现自定义界面,您始终可以使用内容扩展进行本地通知。
Hope it clarifies.希望它澄清。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.