简体   繁体   中英

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.

NO.

If you are using the mutable-content and notifications service extension then as per Apple doc it clearly says:-

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.

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